mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-05 21:53:56 +00:00
17 lines
512 B
JavaScript
17 lines
512 B
JavaScript
const consola = require('consola')
|
|
const { buildFixture } = require('../../utils/build')
|
|
|
|
describe('with-config', () => {
|
|
beforeAll(() => {
|
|
consola.warn = jest.fn()
|
|
})
|
|
buildFixture('with-config', () => {
|
|
expect(consola.warn).toHaveBeenCalledTimes(1)
|
|
expect(consola.warn.mock.calls[0]).toMatchObject([{
|
|
message: 'Found 2 plugins that match the configuration, suggest to specify extension:',
|
|
additional: expect.stringContaining('plugins/test.json'),
|
|
badge: true
|
|
}])
|
|
})
|
|
})
|