mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
refactor(examples/index.test.js): refactor lint error
This commit is contained in:
parent
2c33641b9f
commit
2fdd70ab3f
@ -1,7 +1,7 @@
|
|||||||
import test from 'ava'
|
|
||||||
import { resolve } from 'path'
|
import { resolve } from 'path'
|
||||||
import { Nuxt, Builder } from 'nuxt'
|
import { Nuxt, Builder } from 'nuxt'
|
||||||
import { JSDOM } from 'jsdom'
|
import { JSDOM } from 'jsdom'
|
||||||
|
import test from 'ava'
|
||||||
|
|
||||||
// We keep the nuxt and server instance
|
// We keep the nuxt and server instance
|
||||||
// So we can close them at the end of the test
|
// So we can close them at the end of the test
|
||||||
@ -14,7 +14,6 @@ test.before(async () => {
|
|||||||
try {
|
try {
|
||||||
config = require(resolve(rootDir, 'nuxt.config.js'))
|
config = require(resolve(rootDir, 'nuxt.config.js'))
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
|
||||||
}
|
}
|
||||||
config.rootDir = rootDir // project folder
|
config.rootDir = rootDir // project folder
|
||||||
config.dev = false // production build
|
config.dev = false // production build
|
||||||
|
Loading…
Reference in New Issue
Block a user