2018-03-27 22:28:17 +00:00
|
|
|
import { loadFixture, getPort, Nuxt } from '../utils'
|
2017-11-20 07:13:53 +00:00
|
|
|
|
2018-03-18 23:41:14 +00:00
|
|
|
let port
|
2017-11-20 07:13:53 +00:00
|
|
|
|
|
|
|
let nuxt = null
|
2018-03-18 19:31:32 +00:00
|
|
|
// let buildSpies = null
|
2017-11-20 07:13:53 +00:00
|
|
|
|
2018-03-30 08:59:44 +00:00
|
|
|
describe.skip('deprecate', () => {
|
2018-03-18 19:31:32 +00:00
|
|
|
beforeAll(async () => {
|
2018-03-18 23:41:14 +00:00
|
|
|
const config = loadFixture('deprecate')
|
2017-11-20 07:13:53 +00:00
|
|
|
|
2017-12-17 19:30:26 +00:00
|
|
|
nuxt = new Nuxt(config)
|
2018-03-18 23:41:14 +00:00
|
|
|
port = await getPort()
|
2017-12-17 19:30:26 +00:00
|
|
|
await nuxt.listen(port, 'localhost')
|
2018-03-18 23:41:14 +00:00
|
|
|
})
|
2017-11-20 07:13:53 +00:00
|
|
|
|
2018-03-30 08:59:44 +00:00
|
|
|
test()
|
|
|
|
|
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()
|
|
|
|
})
|
2017-11-20 07:13:53 +00:00
|
|
|
})
|