Skip to content

Commit

Permalink
fix: back to nodeFs
Browse files Browse the repository at this point in the history
  • Loading branch information
barak007 committed Feb 11, 2024
1 parent 6199c02 commit d80ba0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/esbuild/test/e2e/esbuild-testkit.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { dirname, join } from 'node:path';
import { readFileSync, symlinkSync, writeFileSync, cpSync } from 'node:fs';
import { readFileSync, symlinkSync, writeFileSync } from 'node:fs';
import { BuildContext, BuildOptions, context, Plugin } from 'esbuild';
import { createTempDirectorySync, runServer } from '@stylable/e2e-test-kit';

import { nodeFs } from '@file-services/node';
import playwright from 'playwright-core';

type BuildFn = (
Expand Down Expand Up @@ -35,7 +35,7 @@ export class ESBuildTestKit {
if (tmp) {
const t = createTempDirectorySync('esbuild-testkit');
this.disposables.push(() => t.remove());
cpSync(projectDir, t.path, { recursive: true });
nodeFs.copyDirectorySync(projectDir, t.path);
buildFile = join(t.path, 'build.js');
projectDir = t.path;

Expand Down

0 comments on commit d80ba0a

Please sign in to comment.