mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
a616c09b22
* feat(test): enable tests in packages * fix: wait error hook * test: entry and hookable in core * fix(test): options snapshot in windows * refactor(test): simpilify jest.fn * test: module in core * test: complete module test * test: add test for resolver in core * test: update config snapshot * test: nuxt in core module
18 lines
423 B
JavaScript
18 lines
423 B
JavaScript
import { Module, Nuxt, Resolver } from '../src'
|
|
|
|
jest.mock('../src/module', () => ({
|
|
module: true
|
|
})).mock('../src/nuxt', () => ({
|
|
nuxt: true
|
|
})).mock('../src/resolver', () => ({
|
|
resolver: true
|
|
}))
|
|
|
|
describe('core: entry', () => {
|
|
test('should export Module, Nuxt and Resolver', () => {
|
|
expect(Module.module).toEqual(true)
|
|
expect(Nuxt.nuxt).toEqual(true)
|
|
expect(Resolver.resolver).toEqual(true)
|
|
})
|
|
})
|