Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion napi/parser/test/parse-raw.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Tests for raw transfer.

import { readdir, readFile, stat, writeFile } from 'node:fs/promises';
import { mkdir, readdir, readFile, stat, writeFile } from 'node:fs/promises';
import { basename, join as pathJoin } from 'node:path';
import Tinypool from 'tinypool';
import { describe, expect, it } from 'vitest';
Expand Down Expand Up @@ -72,6 +72,8 @@ const benchFixtureUrls = [
'https://cdn.jsdelivr.net/npm/antd@5.12.5/dist/antd.js',
];

await mkdir(TARGET_DIR_PATH, { recursive: true });

const benchFixturePaths = await Promise.all(benchFixtureUrls.map(async (url) => {
const filename = url.split('/').at(-1),
path = pathJoin(TARGET_DIR_PATH, filename);
Expand Down
Loading