diff options
Diffstat (limited to 'test/react-component.test.js')
-rw-r--r-- | test/react-component.test.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/react-component.test.js b/test/react-component.test.js index ea0cb51b7..7de92cb0a 100644 --- a/test/react-component.test.js +++ b/test/react-component.test.js @@ -1,3 +1,4 @@ +import { fileURLToPath } from 'url'; import { suite } from 'uvu'; import * as assert from 'uvu/assert'; import { createRuntime } from '../lib/runtime.js'; @@ -9,7 +10,7 @@ const React = suite('React Components'); let runtime, setupError; React.before(async () => { - const astroConfig = await loadConfig(new URL('./fixtures/react-component', import.meta.url).pathname); + const astroConfig = await loadConfig(fileURLToPath(new URL('./fixtures/react-component', import.meta.url))); const logging = { level: 'error', |