Nuxt/test/fixtures/cli/cli.gen.test.js

16 lines
494 B
JavaScript
Raw Normal View History

import { exec } from 'child_process'
import { resolve } from 'path'
import { promisify } from 'util'
const execify = promisify(exec)
const rootDir = __dirname
const nuxtBin = resolve(__dirname, '../../../packages/cli/bin/nuxt.js')
2018-10-25 11:33:07 +00:00
describe('cli generate', () => {
2018-11-08 09:15:56 +00:00
test.skip('nuxt generate', async () => {
const { stdout } = await execify(`node -r esm ${nuxtBin} generate ${rootDir} -c cli.gen.config.js`)
expect(stdout.includes('Generated successfully')).toBe(true)
}, 80000)
})