[ci] format
This commit is contained in:
parent
a198028b04
commit
3a599f2144
3 changed files with 18 additions and 14 deletions
|
@ -75,8 +75,8 @@ export default function createIntegration(): AstroIntegration {
|
||||||
bundle: true,
|
bundle: true,
|
||||||
minify: true,
|
minify: true,
|
||||||
banner: {
|
banner: {
|
||||||
js: SHIM
|
js: SHIM,
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// throw the server folder in the bin
|
// throw the server folder in the bin
|
||||||
|
|
|
@ -29,4 +29,3 @@ describe('Basic app', () => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,9 @@ export function loadFixture(config) {
|
||||||
return baseLoadFixture(config);
|
return baseLoadFixture(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
const wranglerPath = fileURLToPath(new URL('../node_modules/wrangler/bin/wrangler.js', import.meta.url));
|
const wranglerPath = fileURLToPath(
|
||||||
|
new URL('../node_modules/wrangler/bin/wrangler.js', import.meta.url)
|
||||||
|
);
|
||||||
|
|
||||||
export function runCLI(basePath, { silent }) {
|
export function runCLI(basePath, { silent }) {
|
||||||
const script = fileURLToPath(new URL(`${basePath}/dist/_worker.js`, import.meta.url));
|
const script = fileURLToPath(new URL(`${basePath}/dist/_worker.js`, import.meta.url));
|
||||||
|
@ -23,7 +25,10 @@ export function runCLI(basePath, { silent }) {
|
||||||
const timeout = 10000;
|
const timeout = 10000;
|
||||||
|
|
||||||
const ready = new Promise(async (resolve, reject) => {
|
const ready = new Promise(async (resolve, reject) => {
|
||||||
const failed = setTimeout(() => reject(new Error(`Timed out starting the wrangler CLI`)), timeout);
|
const failed = setTimeout(
|
||||||
|
() => reject(new Error(`Timed out starting the wrangler CLI`)),
|
||||||
|
timeout
|
||||||
|
);
|
||||||
|
|
||||||
(async function () {
|
(async function () {
|
||||||
for (const msg of p.stderr) {
|
for (const msg of p.stderr) {
|
||||||
|
@ -52,11 +57,11 @@ export function runCLI(basePath, { silent }) {
|
||||||
ready,
|
ready,
|
||||||
stop() {
|
stop() {
|
||||||
p.kill();
|
p.kill();
|
||||||
return new Promise(resolve => {
|
return new Promise((resolve) => {
|
||||||
p.addListener('exit', () => {
|
p.addListener('exit', () => {
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
})
|
});
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue