Skip to content

Commit 196245c

Browse files
committed
Task: support placing sandbox in different root
1 parent d4357e1 commit 196245c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ junit.xml
1010
test-results
1111
/repros
1212
/sandbox
13+
/bench
1314
.verdaccio-cache
1415

1516
# Yarn stuff

scripts/get-template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { pathExists } from 'fs-extra';
33
import { resolve } from 'path';
44
import { allTemplates, templatesByCadence } from '../code/lib/cli/src/repro-templates';
55

6-
const sandboxDir = resolve(__dirname, '../sandbox');
6+
const sandboxDir = process.env.SANDBOX_ROOT || resolve(__dirname, '../sandbox');
77

88
export type Cadence = keyof typeof templatesByCadence;
99
export type Template = {

scripts/task.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { e2eTests } from './tasks/e2e-tests';
2525

2626
import { allTemplates as TEMPLATES } from '../code/lib/cli/src/repro-templates';
2727

28-
const sandboxDir = resolve(__dirname, '../sandbox');
28+
const sandboxDir = process.env.SANDBOX_ROOT || resolve(__dirname, '../sandbox');
2929
const codeDir = resolve(__dirname, '../code');
3030
const junitDir = resolve(__dirname, '../test-results');
3131

0 commit comments

Comments
 (0)