We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f58b11 commit 021824dCopy full SHA for 021824d
src/module/plugins/mock.ts
@@ -260,7 +260,7 @@ export const createMockPlugin = (ctx: MockPluginContext) => createUnplugin(() =>
260
const plugins = (config.plugins || []) as Plugin[]
261
262
// `vite:mocks` was a typo in Vitest before v0.34.0
263
- const vitestPlugins = plugins.filter(p => (p.name === 'vite:mocks' || p.name.startsWith('vitest:')) && (p.enforce || ('order' in p && p.order === 'post')))
+ const vitestPlugins = plugins.filter(p => (p.name === 'vite:mocks' || p.name.startsWith('vitest:')) && (p.enforce || ('order' in p && p.order)) === 'post')
264
const lastNuxt = findLastIndex(
265
plugins,
266
i => i.name?.startsWith('nuxt:'),
0 commit comments