mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 01:11:24 +01:00
Print 'delete this directory' message and move on
This commit is contained in:
parent
d8b9274697
commit
95501ed5f5
@ -1,6 +1,7 @@
|
||||
import * as assert from "assert";
|
||||
import * as fs from "fs";
|
||||
import * as path from "path";
|
||||
import * as kleur from "kleur";
|
||||
import { loadConfig, svelte, shouldUpdateExpected } from "../helpers.js";
|
||||
|
||||
describe("js", () => {
|
||||
@ -16,7 +17,10 @@ describe("js", () => {
|
||||
|
||||
dir = path.resolve(`${__dirname}/samples`, dir);
|
||||
|
||||
const skip = !fs.existsSync(`${dir}/input.svelte`);
|
||||
if (!fs.existsSync(`${dir}/input.svelte`)) {
|
||||
console.log(colors.red().bold(`Missing file ${dir}/input.svelte. If you recently switched branches you may need to delete this directory`));
|
||||
return;
|
||||
}
|
||||
|
||||
(skip ? it.skip : solo ? it.only : it)(dir, () => {
|
||||
const config = loadConfig(`${dir}/_config.js`);
|
||||
|
Loading…
Reference in New Issue
Block a user