test
This commit is contained in:
parent
41cd7bb939
commit
c7277100ec
2 changed files with 2 additions and 4 deletions
|
@ -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)),
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue