[ci] format
This commit is contained in:
parent
2b622b5e0f
commit
4f413ad771
2 changed files with 5 additions and 5 deletions
|
@ -8,6 +8,6 @@ export function loadFixture(inlineConfig) {
|
||||||
// without this, the main `loadFixture` helper will resolve relative to `packages/astro/test`
|
// without this, the main `loadFixture` helper will resolve relative to `packages/astro/test`
|
||||||
return baseLoadFixture({
|
return baseLoadFixture({
|
||||||
...inlineConfig,
|
...inlineConfig,
|
||||||
root: new URL(inlineConfig.root, import.meta.url).toString()
|
root: new URL(inlineConfig.root, import.meta.url).toString(),
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,7 +94,8 @@ export async function loadFixture(inlineConfig) {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const resolveUrl = (url) => `http://${'127.0.0.1'}:${config.server.port}${url.replace(/^\/?/, '/')}`;
|
const resolveUrl = (url) =>
|
||||||
|
`http://${'127.0.0.1'}:${config.server.port}${url.replace(/^\/?/, '/')}`;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
build: (opts = {}) => build(config, { mode: 'development', logging, telemetry, ...opts }),
|
build: (opts = {}) => build(config, { mode: 'development', logging, telemetry, ...opts }),
|
||||||
|
@ -105,8 +106,7 @@ export async function loadFixture(inlineConfig) {
|
||||||
},
|
},
|
||||||
config,
|
config,
|
||||||
resolveUrl,
|
resolveUrl,
|
||||||
fetch: (url, init) =>
|
fetch: (url, init) => fetch(resolveUrl(url), init),
|
||||||
fetch(resolveUrl(url), init),
|
|
||||||
preview: async (opts = {}) => {
|
preview: async (opts = {}) => {
|
||||||
const previewServer = await preview(config, { logging, telemetry, ...opts });
|
const previewServer = await preview(config, { logging, telemetry, ...opts });
|
||||||
return previewServer;
|
return previewServer;
|
||||||
|
|
Loading…
Add table
Reference in a new issue