|
|
@ -50,14 +50,15 @@ describe("runtime", () => {
|
|
|
|
if (dir[0] === ".") return;
|
|
|
|
if (dir[0] === ".") return;
|
|
|
|
|
|
|
|
|
|
|
|
const config = loadConfig(`${__dirname}/samples/${dir}/_config.js`);
|
|
|
|
const config = loadConfig(`${__dirname}/samples/${dir}/_config.js`);
|
|
|
|
|
|
|
|
const solo = config.solo || /\.solo/.test(dir);
|
|
|
|
|
|
|
|
|
|
|
|
if (hydrate && config.skip_if_hydrate) return;
|
|
|
|
if (hydrate && config.skip_if_hydrate) return;
|
|
|
|
|
|
|
|
|
|
|
|
if (config.solo && process.env.CI) {
|
|
|
|
if (solo && process.env.CI) {
|
|
|
|
throw new Error("Forgot to remove `solo: true` from test");
|
|
|
|
throw new Error("Forgot to remove `solo: true` from test");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
(config.skip ? it.skip : config.solo ? it.only : it)(`${dir} ${hydrate ? '(with hydration)' : ''}`, () => {
|
|
|
|
(config.skip ? it.skip : solo ? it.only : it)(`${dir} ${hydrate ? '(with hydration)' : ''}`, () => {
|
|
|
|
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');
|
|
|
|