mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[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`
|
||||
return baseLoadFixture({
|
||||
...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 {
|
||||
build: (opts = {}) => build(config, { mode: 'development', logging, telemetry, ...opts }),
|
||||
|
@ -105,8 +106,7 @@ export async function loadFixture(inlineConfig) {
|
|||
},
|
||||
config,
|
||||
resolveUrl,
|
||||
fetch: (url, init) =>
|
||||
fetch(resolveUrl(url), init),
|
||||
fetch: (url, init) => fetch(resolveUrl(url), init),
|
||||
preview: async (opts = {}) => {
|
||||
const previewServer = await preview(config, { logging, telemetry, ...opts });
|
||||
return previewServer;
|
||||
|
|
Loading…
Reference in a new issue