mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 06:35:10 +00:00
22 lines
461 B
JavaScript
22 lines
461 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
|
|
afterAll('Closing server and nuxt.js', async () => {
|
|
await nuxt.close()
|
|
})
|
|
})
|