mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +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})`)
|
|
}
|
|
})
|