Nuxt/packages/builder/test/__utils__/index.js
pooya parsa dec8f99fc3
feat: support plug-and-play, typescript runtime and native modules (#8389)
Co-authored-by: Clark Du <clark.duxin@gmail.com>
2020-12-22 18:07:50 +01:00

25 lines
450 B
JavaScript

export const createNuxt = () => ({
options: {
globalName: 'global_name',
globals: [],
build: {
watch: []
},
render: {
ssr: true
},
router: {},
dir: {
app: 'app'
}
},
ready: jest.fn(),
hook: jest.fn(),
callHook: jest.fn(),
resolver: {
requireModule: jest.fn(),
resolveAlias: jest.fn(src => `resolveAlias(${src})`),
resolvePath: jest.fn(src => `resolvePath(${src})`)
}
})