diff --git a/napi/parser/test/parse-raw.test.ts b/napi/parser/test/parse-raw.test.ts index 977c80814cc0d..fda720a893849 100644 --- a/napi/parser/test/parse-raw.test.ts +++ b/napi/parser/test/parse-raw.test.ts @@ -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'; @@ -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);