We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cb6ae5 commit 850d486Copy full SHA for 850d486
test/_setup/eleventy.ts
@@ -1,4 +1,4 @@
1
-import { readdir, rm } from "node:fs/promises";
+import { mkdir, readdir, rm } from "node:fs/promises";
2
import path from "node:path";
3
import Eleventy from "@11ty/eleventy";
4
import { EleventyPluginOpenSCAD } from "../../src";
@@ -24,6 +24,7 @@ export function createTestInstance(options: PluginOptionsInput): Eleventy {
24
* Delete all test files in output dir
25
*/
26
export async function cleanOutputDir() {
27
+ mkdir(TEST_SITE_OUTPUT, { recursive: true });
28
const files = await readdir(TEST_SITE_OUTPUT);
29
for (const file of files) {
30
await rm(path.join(TEST_SITE_OUTPUT, file), {
0 commit comments