From 777347e932bfeec92f70a17f5b0da8f3dd8a110e Mon Sep 17 00:00:00 2001 From: Philip Fulcher Date: Sat, 23 Oct 2021 10:58:21 -0600 Subject: [PATCH] cleanup(misc): fix dep-graph e2e test on Windows (#7496) --- .../src/workspace-aux-commands.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/e2e/workspace-integrations/src/workspace-aux-commands.test.ts b/e2e/workspace-integrations/src/workspace-aux-commands.test.ts index 47c596132c..9b9adffc88 100644 --- a/e2e/workspace-integrations/src/workspace-aux-commands.test.ts +++ b/e2e/workspace-integrations/src/workspace-aux-commands.test.ts @@ -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); }