diff --git a/test/e2e/build.command.e2e-spec.ts b/test/e2e/build.command.e2e-spec.ts index 3b1d1821f..eecc04b13 100644 --- a/test/e2e/build.command.e2e-spec.ts +++ b/test/e2e/build.command.e2e-spec.ts @@ -1,5 +1,6 @@ import { describe, it, expect, beforeAll, afterAll } from 'vitest'; import { execSync } from 'child_process'; +import * as fs from 'fs'; import * as path from 'path'; import { createTempDir, @@ -26,7 +27,6 @@ describe('Build Command (e2e)', () => { }); function cleanDist() { - const fs = require('fs'); fs.rmSync(path.join(appPath, 'dist'), { recursive: true, force: true }); } @@ -117,7 +117,6 @@ describe('Build Command - Monorepo with webpack (e2e)', () => { }); function cleanDist() { - const fs = require('fs'); fs.rmSync(path.join(monoPath, 'dist'), { recursive: true, force: true }); }