Skip to content

Commit ccdc33e

Browse files
test: move wrapAll to beforeAll
1 parent ffd9742 commit ccdc33e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/module.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ jest.setTimeout(60 * 1000)
66
let nuxt
77

88
describe('nuxt-bundle-buddy', () => {
9+
beforeAll(() => {
10+
consola.wrapAll()
11+
})
12+
913
beforeEach(() => {
1014
jest.spyOn(process, 'exit').mockImplementationOnce(() => {})
11-
consola.restoreAll()
1215
consola.mockTypes(() => jest.fn())
13-
consola.wrapAll()
1416
})
1517

1618
test('load bundle-buddy webpack plugin', async () => {

0 commit comments

Comments
 (0)