diff options
author | 2021-04-14 13:21:25 -0600 | |
---|---|---|
committer | 2021-04-14 13:21:25 -0600 | |
commit | 034674c88c5eab59d1cf8883951daa60693fb95c (patch) | |
tree | 603f2e7e6e1e825f303c36ca1b72cccd3caba43d /test/react-component.test.js | |
parent | ec75312a153424a47e05d72d41f4c3152cc7ad09 (diff) | |
download | astro-034674c88c5eab59d1cf8883951daa60693fb95c.tar.gz astro-034674c88c5eab59d1cf8883951daa60693fb95c.tar.zst astro-034674c88c5eab59d1cf8883951daa60693fb95c.zip |
Add Windows Support (#93)
* Add Windows to test suite
* Try implicit URL
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', |