mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 15:42:09 +00:00
test(nuxt3): fix exclude test (#2932)
This commit is contained in:
parent
d0bcc3fc82
commit
b449d0bfb9
@ -46,8 +46,8 @@ describe('auto-imports:transform', () => {
|
||||
expect(result).to.equal('import { computed } from \'bar\';// import { computed } from "foo"\n;const a = computed(0)')
|
||||
})
|
||||
|
||||
it('should exclude files from transform', async () => {
|
||||
expect(await transform('const a = foo()')).to.not.include('import { foo } from "excluded"')
|
||||
it('should exclude files from transform', () => {
|
||||
expect(transformPlugin.transformInclude.call({ error: null, warn: null }, 'excluded')).to.equal(false)
|
||||
})
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user