Skip to content

Commit f304db5

Browse files
authored
test(e2e): run sandbox in package path (#644)
1 parent 4e4623b commit f304db5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/.config/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sandbox

tests/.config/sandbox.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { execSync } from 'child_process';
2-
import { mkdirSync, rmSync, writeFileSync, mkdtempSync } from 'fs';
2+
import { mkdirSync, rmSync, writeFileSync } from 'fs';
33
import { rimrafSync } from 'rimraf';
44
import isCi from 'is-ci';
55
import * as path from 'path';
6-
import { tmpdir } from 'os';
76

87
export interface SandboxOptions {
98
esm?: boolean;
@@ -19,7 +18,7 @@ export class Sandbox {
1918
private readonly esm: boolean;
2019

2120
public constructor(options?: SandboxOptions) {
22-
this.projectPath = mkdtempSync(tmpdir());
21+
this.projectPath = path.resolve(__dirname, 'sandbox');
2322
this.esm = options?.esm ?? false;
2423
}
2524

0 commit comments

Comments
 (0)