mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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 { Nuxt, Builder } from 'nuxt'
|
||||
import { JSDOM } from 'jsdom'
|
||||
import test from 'ava'
|
||||
|
||||
// We keep the nuxt and server instance
|
||||
// So we can close them at the end of the test
|
||||
@ -14,7 +14,6 @@ test.before(async () => {
|
||||
try {
|
||||
config = require(resolve(rootDir, 'nuxt.config.js'))
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
config.rootDir = rootDir // project folder
|
||||
config.dev = false // production build
|
||||
|
Loading…
Reference in New Issue
Block a user