From 436a640dd9ec0fd3343c76ac36812abd1d5f0951 Mon Sep 17 00:00:00 2001 From: Rudi Yardley Date: Tue, 24 Mar 2020 02:49:59 +1100 Subject: [PATCH 1/2] Try setting normalise to false on tree testing --- packages/server/test/build.test.ts | 2 +- packages/server/test/dev.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/test/build.test.ts b/packages/server/test/build.test.ts index a80091c8e9..4d929a2064 100644 --- a/packages/server/test/build.test.ts +++ b/packages/server/test/build.test.ts @@ -44,7 +44,7 @@ describe('Build command', () => { }) it('should copy the correct files to the build folder', async () => { - const tree = directoryTree(rootFolder, {normalizePath: true}) + const tree = directoryTree(rootFolder) expect(tree).toEqual({ children: [ { diff --git a/packages/server/test/dev.test.ts b/packages/server/test/dev.test.ts index 2261c9e6cb..d54de62230 100644 --- a/packages/server/test/dev.test.ts +++ b/packages/server/test/dev.test.ts @@ -38,7 +38,7 @@ describe('Dev command', () => { }) it('should copy the correct files to the dev folder', async () => { - const tree = directoryTree(rootFolder, {normalizePath: true}) + const tree = directoryTree(rootFolder) expect(tree).toEqual({ children: [ { From 6d0d6e317310d3742b3193329c6a21ab78d26811 Mon Sep 17 00:00:00 2001 From: Rudi Yardley Date: Tue, 24 Mar 2020 02:56:14 +1100 Subject: [PATCH 2/2] Remove debugging log --- packages/server/test/build.test.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/server/test/build.test.ts b/packages/server/test/build.test.ts index 4d929a2064..0c31ae651a 100644 --- a/packages/server/test/build.test.ts +++ b/packages/server/test/build.test.ts @@ -21,11 +21,7 @@ describe('Build command', () => { const rootFolder = resolve(__dirname, './fixtures/build') const buildFolder = resolve(rootFolder, '.blitz-build') const devFolder = resolve(rootFolder, '.blitz') - console.log('Debugging CI failures:', { - rootFolder, - buildFolder, - devFolder, - }) + beforeEach(async () => { jest.clearAllMocks() await build({rootFolder, buildFolder, devFolder, writeManifestFile: false})