Skip to content

Commit 48f8344

Browse files
committed
fix appveyor failure
1 parent 98d1714 commit 48f8344

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/e2e/tests/test/e2e.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
import {
22
ng,
3-
exec,
3+
npm,
44
execAndWaitForOutputToMatch,
55
killAllProcesses
66
} from '../../utils/process';
7+
import { updateJsonFile } from '../../utils/project';
78
import { expectToFail } from '../../utils/utils';
89
import { moveFile, copyFile } from '../../utils/fs';
910

1011

1112
export default function () {
1213
// Should fail without updated webdriver
13-
return exec('./node_modules/.bin/webdriver-manager', 'clean')
14+
return updateJsonFile('package.json', packageJson => {
15+
// Add to npm scripts to make running the binary compatible with Windows
16+
const scripts = packageJson['scripts'];
17+
scripts['wd:clean'] = 'webdriver-manager clean';
18+
})
19+
.then(() => npm('run', 'wd:clean'))
1420
.then(() => expectToFail(() => ng('e2e', '--no-webdriver-update', '--no-serve')))
1521
// Should fail without serving
1622
.then(() => expectToFail(() => ng('e2e', '--no-serve')))

0 commit comments

Comments
 (0)