mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-05 13:43:59 +00:00
1dd32d0d21
* add ~> addReporter * remove badge * withScope ~> withTag * update to consola 2 * update build tests
11 lines
416 B
JavaScript
11 lines
416 B
JavaScript
import consola from 'consola'
|
|
import { buildFixture } from '../../utils/build'
|
|
|
|
describe('missing-pages-dir', () => {
|
|
buildFixture('missing-pages-dir', (builder) => {
|
|
const options = builder.nuxt.options
|
|
expect(consola.warn).toHaveBeenCalledTimes(1)
|
|
expect(consola.warn).toHaveBeenCalledWith(`No \`${options.dir.pages}\` directory found in ${options.srcDir}. Using the default built-in page.`)
|
|
})
|
|
})
|