Nuxt/packages/generator/test/__utils__/index.js
2019-01-29 10:16:45 +00:00

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' }
}
})