mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 10:04:05 +00:00
dec8f99fc3
Co-authored-by: Clark Du <clark.duxin@gmail.com>
25 lines
450 B
JavaScript
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})`)
|
|
}
|
|
})
|