[ci] format
This commit is contained in:
parent
7b0fbd731e
commit
0c8b2193b2
2 changed files with 7 additions and 8 deletions
|
@ -257,10 +257,11 @@ async function copyFiles(fromFolder: URL, toFolder: URL) {
|
|||
files.map(async (filename) => {
|
||||
const from = new URL(filename, fromFolder);
|
||||
const to = new URL(filename, toFolder);
|
||||
const lastFolder = new URL('./', to)
|
||||
return fs.promises.mkdir(lastFolder, {recursive: true})
|
||||
.then(()=>fs.promises.copyFile(from, to) )
|
||||
})
|
||||
const lastFolder = new URL('./', to);
|
||||
return fs.promises
|
||||
.mkdir(lastFolder, { recursive: true })
|
||||
.then(() => fs.promises.copyFile(from, to));
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -170,13 +170,11 @@ describe('Static build', () => {
|
|||
});
|
||||
|
||||
describe('Static build SSR', () => {
|
||||
|
||||
it('Copies public files', async () => {
|
||||
const fixture = await loadFixture({
|
||||
root: './fixtures/static build SSR/',
|
||||
});
|
||||
await fixture.build()
|
||||
const asset = await fixture.readFile('/client/nested/asset2.txt');
|
||||
await fixture.build();
|
||||
const asset = await fixture.readFile('/client/nested/asset2.txt');
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue