From 58dd3feedc672cb9c6d7f85fc5109ab05398af1a Mon Sep 17 00:00:00 2001 From: Mateusz Bocian Date: Thu, 16 May 2024 19:35:52 -0400 Subject: [PATCH] test: skip test on windows due to unexpected fetch behaviour --- tests/integration/commands/dev/dev-miscellaneous.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/integration/commands/dev/dev-miscellaneous.test.js b/tests/integration/commands/dev/dev-miscellaneous.test.js index 56e502d28ce..a47640833fe 100644 --- a/tests/integration/commands/dev/dev-miscellaneous.test.js +++ b/tests/integration/commands/dev/dev-miscellaneous.test.js @@ -1,5 +1,6 @@ import { Buffer } from 'buffer' import path from 'path' +import { platform } from 'process' import { fileURLToPath } from 'url' import { setProperty } from 'dot-prop' @@ -752,6 +753,9 @@ describe.concurrent('commands/dev-miscellaneous', () => { }) test('should detect content changes in edge functions', async (t) => { + // on windows, fetch throws an error while files are refreshing instead of returning the old value + if (platform === 'win32') return + await withSiteBuilder(t, async (builder) => { const publicDir = 'public' builder