This commit is contained in:
Sébastien Chopin 2016-12-20 20:54:23 +01:00
parent b5e24023a0
commit 117fa7ef3a
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@
"nuxt": "./bin/nuxt" "nuxt": "./bin/nuxt"
}, },
"scripts": { "scripts": {
"test": "nyc ava --serial test/", "test": "nyc ava test/",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", "coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"lint": "eslint --ext .js,.vue bin lib pages test/*.js --ignore-pattern lib/app", "lint": "eslint --ext .js,.vue bin lib pages test/*.js --ignore-pattern lib/app",
"build": "webpack", "build": "webpack",

View File

@ -39,7 +39,7 @@ test.serial('Fail when build not done and try to render', t => {
test.serial('Fail to build when no pages/ directory but is in the parent', t => { test.serial('Fail to build when no pages/ directory but is in the parent', t => {
const nuxt = new Nuxt({ const nuxt = new Nuxt({
dev: false, dev: false,
rootDir: resolve(__dirname, 'empty', 'pages') rootDir: resolve(__dirname, 'fixtures', 'empty', 'pages')
}) })
return new Promise((resolve) => { return new Promise((resolve) => {
var oldExit = process.exit var oldExit = process.exit