We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc42e10 commit 54fb8c6Copy full SHA for 54fb8c6
test/login.test.js
@@ -10,6 +10,7 @@ const headers = {
10
// Init Nuxt.js and create a server listening on localhost:4000
11
test.before('Init Nuxt.js', async t => {
12
nuxt = createNuxt()
13
+ await nuxt.listen(3000, 'localhost')
14
})
15
16
test('Route /login', async t => {
@@ -25,6 +26,6 @@ test('Route /login with locale [en]', async t => {
25
26
27
28
// Close server and ask nuxt to stop listening to file changes
-test.after('Closing server and nuxt.js', t => {
29
- nuxt.close()
+test.after('Closing server and nuxt.js', async t => {
30
+ await nuxt.close()
31
0 commit comments