Nuxt/test/unit/deprecate.test.js
Clark Du ef7a42649d misc: improve coverage and packaging (#3121)
nuxt-start and nuxt/legacy are also coming!
2018-03-28 02:58:17 +04:30

22 lines
457 B
JavaScript

import { loadFixture, getPort, Nuxt } from '../utils'
let port
let nuxt = null
// let buildSpies = null
describe('deprecate', () => {
beforeAll(async () => {
const config = loadFixture('deprecate')
nuxt = new Nuxt(config)
port = await getPort()
await nuxt.listen(port, 'localhost')
})
// Close server and ask nuxt to stop listening to file changes
test('Closing server and nuxt.js', async () => {
await nuxt.close()
})
})