From ff336c5761428c651784ed5659b6bd845b5433bc Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Tue, 15 Feb 2022 15:32:26 -0500 Subject: [PATCH] Final cleanup --- packages/astro/package.json | 2 +- packages/astro/src/vite-plugin-astro/index.ts | 4 +--- packages/astro/test/static-build.test.js | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/astro/package.json b/packages/astro/package.json index d7cf36274a3d..59a50e1fba2b 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -52,7 +52,7 @@ "dev": "astro-scripts dev \"src/**/*.ts\"", "postbuild": "astro-scripts copy \"src/**/*.astro\"", "benchmark": "node test/benchmark/dev.bench.js && node test/benchmark/build.bench.js", - "test": "mocha --timeout 15000 --ignore **/lit-element.test.js && mocha **/lit-element.test.js", + "test": "mocha --parallel --timeout 15000 --ignore **/lit-element.test.js && mocha **/lit-element.test.js", "test:match": "mocha --timeout 15000 -g" }, "dependencies": { diff --git a/packages/astro/src/vite-plugin-astro/index.ts b/packages/astro/src/vite-plugin-astro/index.ts index 0929040cc276..db1b16a77561 100644 --- a/packages/astro/src/vite-plugin-astro/index.ts +++ b/packages/astro/src/vite-plugin-astro/index.ts @@ -55,8 +55,6 @@ export default function astro({ config, logging }: AstroPluginOptions): vite.Plu if(fromQuery.astro && isRelativePath(id)) { const resolvedURL = new URL(id, `file://${filename}`); const resolved = resolvedURL.pathname; - - console.log("WINDOWS DEBUG2", resolved); if(isBrowserPath(resolved)) { return slash(fileURLToPath(new URL('.' + resolved, config.projectRoot))); } @@ -71,7 +69,7 @@ export default function astro({ config, logging }: AstroPluginOptions): vite.Plu // Because this needs to be the id for the Vite CSS plugin to property resolve // relative @imports. if (query.type === 'style' && isBrowserPath(id)) { - return fileURLToPath(new URL('.' + id, config.projectRoot)); + return slash(fileURLToPath(new URL('.' + id, config.projectRoot))); } return id; diff --git a/packages/astro/test/static-build.test.js b/packages/astro/test/static-build.test.js index 6851fe512afa..45a125f9b242 100644 --- a/packages/astro/test/static-build.test.js +++ b/packages/astro/test/static-build.test.js @@ -114,7 +114,7 @@ describe('Static build', () => { }); }); - describe.only('Hoisted scripts', () => { + describe('Hoisted scripts', () => { it('Get bundled together on the page', async () => { const html = await fixture.readFile('/subpath/hoisted/index.html'); const $ = cheerio.load(html);