Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

test(nuxt3): fix exclude test #2932

Merged
merged 1 commit into from
Jan 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/nuxt3/test/auto-imports.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
})

Expand Down