mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-12 00:53:55 +00:00
22 lines
453 B
JavaScript
22 lines
453 B
JavaScript
export const createNuxt = () => ({
|
|
options: {
|
|
globalName: 'global_name',
|
|
globals: [],
|
|
build: {
|
|
watch: []
|
|
},
|
|
router: {},
|
|
dir: {
|
|
app: 'app'
|
|
}
|
|
},
|
|
ready: jest.fn(),
|
|
hook: jest.fn(),
|
|
callHook: jest.fn(),
|
|
resolver: {
|
|
requireModule: jest.fn(() => ({ template: 'builder-template' })),
|
|
resolveAlias: jest.fn(src => `resolveAlias(${src})`),
|
|
resolvePath: jest.fn(src => `resolvePath(${src})`)
|
|
}
|
|
})
|