Nuxt/test/unit/deprecate.test.js

22 lines
461 B
JavaScript
Raw Normal View History

import { loadFixture, getPort, Nuxt } from '../utils'
2018-03-18 23:41:14 +00:00
let port
let nuxt = null
2018-03-18 19:31:32 +00:00
// let buildSpies = null
2018-03-19 02:19:19 +00:00
describe('deprecate', () => {
2018-03-18 19:31:32 +00:00
beforeAll(async () => {
2018-03-18 23:41:14 +00:00
const config = loadFixture('deprecate')
nuxt = new Nuxt(config)
2018-03-18 23:41:14 +00:00
port = await getPort()
await nuxt.listen(port, 'localhost')
2018-03-18 23:41:14 +00:00
})
2018-03-18 19:31:32 +00:00
// Close server and ask nuxt to stop listening to file changes
2018-03-30 08:38:22 +00:00
afterAll('Closing server and nuxt.js', async () => {
2018-03-18 19:31:32 +00:00
await nuxt.close()
})
})