Skip to content

Commit e4a96bc

Browse files
committed
test: update cwd test
1 parent a8d6939 commit e4a96bc

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.vscode/settings.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,17 @@
44
"javascriptreact",
55
"typescript",
66
"typescriptreact"
7+
],
8+
"jest.virtualFolders": [
9+
{
10+
"name": "test/e2e",
11+
"jestCommandLine": "npm pack && yarn jest --config=test/e2e/jest.config.js --ci -i -b",
12+
"runMode": "on-demand"
13+
},
14+
{
15+
"name": "test/unit",
16+
"jestCommandLine": "yarn jest --config=test/unit/jest.config.js",
17+
"runMode": "on-demand"
18+
}
719
]
820
}

test/e2e/type-script-context-option.spec.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,9 @@ describe('TypeScript Context Option', () => {
6464
await sandbox.write('foo/.gitignore', '');
6565

6666
const driver = createWebpackDevServerDriver(
67-
sandbox.spawn(
68-
`../node_modules/.bin/webpack${
69-
os.platform() === 'win32' ? '.cmd' : ''
70-
} serve --mode=development --config=../webpack.config.js`,
71-
{
72-
cwd: path.join(sandbox.context, 'foo'),
73-
}
74-
),
67+
sandbox.spawn(`yarn webpack serve --mode=development --config=../webpack.config.js`, {
68+
cwd: path.join(sandbox.context, 'foo'),
69+
}),
7570
async
7671
);
7772

0 commit comments

Comments
 (0)