i'm trying to use vite in my existing React application. so i followed this document https://www.darraghoriordan.com/2021/05/16/migrating-from-create-react-app-to-vite
here, my application is working as i expected, but when i try to run the test case yarn test
i'm getting this message the test case haven't started the testing.
i've tried this but no luck.
this what i've kept in the package.json's script:{ "test": "vite test"}
in my vite.config.ts
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import svgrPlugin from "vite-plugin-svgr";
import envCompatible from 'vite-plugin-env-compatible';
import path from "path";
// https://vitejs.dev/config/
export default defineConfig({
// This changes the out put dir from dist to build
build: {
outDir: "build",
},
resolve: {
alias: {
"@src": path.resolve(__dirname, "src"),
}
},
envPrefix: 'REACT_APP_',
plugins: [
react(),
envCompatible(),
svgrPlugin({
svgrOptions: {
icon: true,
// ...svgr options (https://react-svgr.com/docs/options/)
},
}),
],
});
can anyone helpme to solve this