mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +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)')
|
expect(result).to.equal('import { computed } from \'bar\';// import { computed } from "foo"\n;const a = computed(0)')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should exclude files from transform', async () => {
|
it('should exclude files from transform', () => {
|
||||||
expect(await transform('const a = foo()')).to.not.include('import { foo } from "excluded"')
|
expect(transformPlugin.transformInclude.call({ error: null, warn: null }, 'excluded')).to.equal(false)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user