-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
p3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
Describe the bug
Hi,
When I setup vite.config.ts as below, vitest will output the result to root_project\src\node_modules\.vitest\results.json
I think its location is root_project\node_modules\.vitest\results.json
/// <reference types="vitest" />
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
define: {
'import.meta.vitest': 'undefined',
},
plugins: [react()],
test: {
root: 'src',
globals: true,
environment: 'happy-dom',
setupFiles: ['./test-setup.ts'],
includeSource: ['**/*.{ts,tsx}'],
mockReset: true,
restoreMocks: true,
css: true,
},
});Reproduction
{"version":"0.30.1","results":[[":src/App.test.tsx",{"duration":25,"failed":false}]]}
System Info
node 14
npm 6.14Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
p3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Type
Projects
Status
Approved