[READ-ONLY] Mirror of https://github.com/danielroe/nuxt-vitest. An vitest environment with support for testing code that needs a Nuxt runtime environment
nuxt nuxt-module testing unit-testing vitest
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: remove support for `inline: true` and avoid inlining vite/vue

Daniel Roe (Jul 5, 2023, 6:09 PM +0200) d95e15fe 487d7917

+11 -16
+11 -16
packages/nuxt-vitest/src/config.ts
··· 123 123 ], 124 124 deps: { 125 125 ...options.viteConfig.test?.deps, 126 - inline: 127 - options.viteConfig.test?.deps?.inline === true 128 - ? true 129 - : [ 130 - // vite-node defaults 131 - /\/node_modules\/(.*\/)?(nuxt|nuxt3)\//, 132 - /^#/, 133 - 'vite', 134 - // additional deps 135 - 'vue', 136 - 'vitest-environment-nuxt', 137 - ...(options.nuxt.options.build.transpile.filter( 138 - r => typeof r === 'string' || r instanceof RegExp 139 - ) as Array<string | RegExp>), 140 - ...(options.viteConfig.test?.deps?.inline || []), 141 - ], 126 + inline: [ 127 + // vite-node defaults 128 + /\/node_modules\/(.*\/)?(nuxt|nuxt3)\//, 129 + /^#/, 130 + // additional deps 131 + 'vitest-environment-nuxt', 132 + ...(options.nuxt.options.build.transpile.filter( 133 + r => typeof r === 'string' || r instanceof RegExp 134 + ) as Array<string | RegExp>), 135 + ...(typeof options.viteConfig.test?.deps?.inline !== 'boolean' ? typeof options.viteConfig.test?.deps?.inline : []), 136 + ], 142 137 }, 143 138 }, 144 139 }