cleanup(misc): fix dep-graph e2e test on Windows (#7496)

This commit is contained in:
Philip Fulcher 2021-10-23 10:58:21 -06:00 committed by GitHub
parent 3e1bb782c3
commit 777347e932
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
import * as path from 'path';
import {
checkFilesExist,
fileExists,
isNotWindows,
isWindows,
newProject,
@ -281,9 +282,7 @@ describe('dep-graph', () => {
it('dep-graph should output json to file by absolute path in Windows', () => {
runCLI(`dep-graph --file=C:\\tmp\\project-graph.json`);
expect(() =>
checkFilesExist('C:\\tmp\\project-graph.json')
).not.toThrow();
expect(fileExists('C:\\tmp\\project-graph.json')).toBeTruthy();
}, 1000000);
}