Skip to content

Commit

Permalink
fix(config): remove nuxt's custom vite logger
Browse files Browse the repository at this point in the history
resolves #754
  • Loading branch information
danielroe committed Feb 15, 2024
1 parent 08c978e commit eca52f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ export async function getVitestConfigFromNuxt(
// TODO: fix this by separating nuxt/node vitest configs
// typescript currently checks this to determine if it can access the filesystem: https://github.com/microsoft/TypeScript/blob/d4fbc9b57d9aa7d02faac9b1e9bb7b37c687f6e9/src/compiler/core.ts#L2738-L2749
delete resolvedConfig.define!['process.browser']

// Remove built-in Nuxt logger: https://github.com/vitest-dev/vitest/issues/5211
delete resolvedConfig.customLogger

if (!Array.isArray(resolvedConfig.test.setupFiles)) {
resolvedConfig.test.setupFiles = [resolvedConfig.test.setupFiles].filter(Boolean) as string[]
Expand Down

0 comments on commit eca52f5

Please sign in to comment.