Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

test(module): explicitly call nuxt.ready() #46

Merged
merged 3 commits into from
Mar 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/middleware.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ describe('middleware', () => {
{ ...createFeed(), ...{ path: '/feed-error.xml' } }
]
})
await nuxt.ready()
await new Builder(nuxt).build()
port = await getPort()
await nuxt.listen(port)
Expand Down
2 changes: 2 additions & 0 deletions test/module.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const get = path => request(url(path))

const setupNuxt = async (config) => {
const nuxt = new Nuxt(config)
await nuxt.ready()
await new Builder(nuxt).build()
port = await getPort()
await nuxt.listen(port)
Expand All @@ -45,6 +46,7 @@ describe('module', () => {

test('generate simple rss', async () => {
nuxt = new Nuxt(config)
await nuxt.ready()

const builder = new Builder(nuxt)
const generator = new Generator(nuxt, builder)
Expand Down