Skip to content

Commit

Permalink
fix(nuxt-vitest): exclude import protection plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 12, 2023
1 parent 6161487 commit 396c593
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nuxt-vitest/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export async function getVitestConfigFromNuxt(
options?: GetVitestConfigOptions
): Promise<InlineConfig & { test: VitestConfig }> {
if (!options) options = await startNuxtAndGetViteConfig()
options.viteConfig.plugins = options.viteConfig.plugins?.filter(p => (p as any)?.name !== 'nuxt:import-protection')

return {
...options.viteConfig,
Expand Down

0 comments on commit 396c593

Please sign in to comment.