mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-15 02:14:44 +00:00
15 lines
361 B
JavaScript
15 lines
361 B
JavaScript
|
export const createNuxt = () => ({
|
||
|
ready: jest.fn(),
|
||
|
callHook: jest.fn(),
|
||
|
server: {
|
||
|
renderRoute: jest.fn(() => ({ html: 'rendered html' }))
|
||
|
},
|
||
|
options: {
|
||
|
srcDir: '/var/nuxt/src',
|
||
|
buildDir: '/var/nuxt/build',
|
||
|
generate: { dir: '/var/nuxt/generate' },
|
||
|
build: { publicPath: '__public' },
|
||
|
dir: { static: '/var/nuxt/static' }
|
||
|
}
|
||
|
})
|