From c7277100ec039f4cb581588d5a99619ce2ae844f Mon Sep 17 00:00:00 2001 From: wuls Date: Wed, 24 May 2023 16:32:06 +0800 Subject: [PATCH] test --- packages/astro/test/test-utils.js | 3 +-- packages/integrations/node/package.json | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/astro/test/test-utils.js b/packages/astro/test/test-utils.js index 01391e828..27f5d83f7 100644 --- a/packages/astro/test/test-utils.js +++ b/packages/astro/test/test-utils.js @@ -125,7 +125,7 @@ export async function loadFixture(inlineConfig) { const { astroConfig: config } = await resolveConfig(inlineConfig, 'dev'); const resolveUrl = (url) => - `http://${config.server.host || '127.0.0.1'}:${config.server.port}${url.replace(/^\/?/, '/')}`; + `http://${config.server.host || 'localhost'}:${config.server.port}${url.replace(/^\/?/, '/')}`; // A map of files that have been edited. let fileEdits = new Map(); @@ -190,7 +190,6 @@ export async function loadFixture(inlineConfig) { const previewServer = await preview(mergeConfig(inlineConfig, extraInlineConfig)); config.server.host = parseAddressToHost(previewServer.host); // update host config.server.port = previewServer.port; // update port - console.log(config.server.port, config.server.host, 'test') return previewServer; }, pathExists: (p) => fs.existsSync(new URL(p.replace(/^\//, ''), config.outDir)), diff --git a/packages/integrations/node/package.json b/packages/integrations/node/package.json index b80c66108..3306b2e57 100644 --- a/packages/integrations/node/package.json +++ b/packages/integrations/node/package.json @@ -30,8 +30,7 @@ "build": "astro-scripts build \"src/**/*.ts\" && tsc", "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"", - "test": "mocha --exit --timeout 20000 test/", - "t": "mocha --exit --timeout 20000 test/well-known-locations.test.js" + "test": "mocha --exit --timeout 20000 test/" }, "dependencies": { "@astrojs/webapi": "^2.2.0",