mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-18 02:07:14 +00:00
16 lines
341 B
JavaScript
16 lines
341 B
JavaScript
|
export const createNuxt = () => ({
|
||
|
options: {
|
||
|
globalName: 'global_name',
|
||
|
globals: [],
|
||
|
build: {},
|
||
|
router: {}
|
||
|
},
|
||
|
ready: jest.fn(),
|
||
|
hook: jest.fn(),
|
||
|
callHook: jest.fn(),
|
||
|
resolver: {
|
||
|
requireModule: jest.fn(() => ({ template: 'builder-template' })),
|
||
|
resolveAlias: jest.fn(src => `resolveAlias(${src})`)
|
||
|
}
|
||
|
})
|