mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
11 lines
412 B
JavaScript
11 lines
412 B
JavaScript
import consola from 'consola'
|
|
import { buildFixture } from '../../utils/build'
|
|
|
|
describe('missing-pages-dir', () => {
|
|
buildFixture('missing-pages-dir', (builder) => {
|
|
const { options } = builder.nuxt
|
|
expect(consola.warn).toHaveBeenCalledTimes(1)
|
|
expect(consola.warn).toHaveBeenCalledWith(`No \`${options.dir.pages}\` directory found in ${options.srcDir}. Using the default built-in page.`)
|
|
})
|
|
})
|