diff --git a/package.json b/package.json index 79d708c..73f0a21 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "rollup -c", "test": "mocha -r chai/register-should test/index.js", - "coverage": "nyc --reporter=html --reporter=text mocha -r chai/register-should test/index.js" + "coverage": "nyc --reporter=html --reporter=text npm test" }, "dependencies": { "fs-extra": "^9.0.1", @@ -33,7 +33,7 @@ "nyc": { "all": true, "include": [ - "src/*.js" + "src/**/*.js" ], "exclude": [ "src/cli.js", diff --git a/test/index.js b/test/index.js index 3b3437e..a88da3b 100644 --- a/test/index.js +++ b/test/index.js @@ -18,6 +18,7 @@ const cap = s => s.charAt(0).toUpperCase() + s.slice(1) for (const part of ['points', 'outlines', 'cases', 'pcbs']) { if (what && !what.includes(part)) continue describe(cap(part), function() { + this.timeout(120000) const dir = path.join(__dirname, part) for (const input_path of glob.sync(path.join(dir, '*.yaml'))) { const basename = path.basename(input_path, '.yaml')