|
|
|
@ -13,7 +13,7 @@ const index = path.resolve('index.mjs');
|
|
|
|
const assert = fs.readFileSync(`${__dirname}/assert.js`, 'utf-8');
|
|
|
|
const assert = fs.readFileSync(`${__dirname}/assert.js`, 'utf-8');
|
|
|
|
|
|
|
|
|
|
|
|
describe('runtime (playwright)', function () {
|
|
|
|
describe('runtime (playwright)', function () {
|
|
|
|
this.timeout(10000);
|
|
|
|
this.timeout(20000);
|
|
|
|
|
|
|
|
|
|
|
|
let svelte;
|
|
|
|
let svelte;
|
|
|
|
let browser;
|
|
|
|
let browser;
|
|
|
|
@ -48,7 +48,6 @@ describe('runtime (playwright)', function () {
|
|
|
|
(skip ? it.skip : solo ? it.only : it)(
|
|
|
|
(skip ? it.skip : solo ? it.only : it)(
|
|
|
|
`${dir} ${hydrate ? '(with hydration)' : ''}`,
|
|
|
|
`${dir} ${hydrate ? '(with hydration)' : ''}`,
|
|
|
|
async () => {
|
|
|
|
async () => {
|
|
|
|
first_run = false;
|
|
|
|
|
|
|
|
if (failed.has(dir)) {
|
|
|
|
if (failed.has(dir)) {
|
|
|
|
// this makes debugging easier, by only printing compiled output once
|
|
|
|
// this makes debugging easier, by only printing compiled output once
|
|
|
|
throw new Error('skipping test, already failed');
|
|
|
|
throw new Error('skipping test, already failed');
|
|
|
|
@ -221,10 +220,9 @@ describe('runtime (playwright)', function () {
|
|
|
|
throw err;
|
|
|
|
throw err;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
).timeout(first_run ? 20000 : 10000);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let first_run = true;
|
|
|
|
|
|
|
|
fs.readdirSync(`${__dirname}/samples`).forEach((dir) => {
|
|
|
|
fs.readdirSync(`${__dirname}/samples`).forEach((dir) => {
|
|
|
|
runTest(dir, false);
|
|
|
|
runTest(dir, false);
|
|
|
|
runTest(dir, true);
|
|
|
|
runTest(dir, true);
|
|
|
|
|