Nuxt/packages/core/test/index.test.js
Xin Du (Clark) a616c09b22 feat(test): unit tests for core/config module (#4760)
* 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
2019-01-19 13:00:51 +01:00

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)
})
})