cleanup(misc): fix dep-graph e2e test on Windows (#7496)
This commit is contained in:
parent
3e1bb782c3
commit
777347e932
@ -1,6 +1,7 @@
|
|||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import {
|
import {
|
||||||
checkFilesExist,
|
checkFilesExist,
|
||||||
|
fileExists,
|
||||||
isNotWindows,
|
isNotWindows,
|
||||||
isWindows,
|
isWindows,
|
||||||
newProject,
|
newProject,
|
||||||
@ -281,9 +282,7 @@ describe('dep-graph', () => {
|
|||||||
it('dep-graph should output json to file by absolute path in Windows', () => {
|
it('dep-graph should output json to file by absolute path in Windows', () => {
|
||||||
runCLI(`dep-graph --file=C:\\tmp\\project-graph.json`);
|
runCLI(`dep-graph --file=C:\\tmp\\project-graph.json`);
|
||||||
|
|
||||||
expect(() =>
|
expect(fileExists('C:\\tmp\\project-graph.json')).toBeTruthy();
|
||||||
checkFilesExist('C:\\tmp\\project-graph.json')
|
|
||||||
).not.toThrow();
|
|
||||||
}, 1000000);
|
}, 1000000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user