quivr/frontend/vitest.config.ts
Mamadou DICKO cd78594590
Config frontend tests (#408)
* test: configure vitest and RTL

* test: add test boilerplates

* feat(ci): added test-unit frontend

---------

Co-authored-by: Stan Girard <girard.stanislas@gmail.com>
2023-06-29 13:18:30 +02:00

20 lines
436 B
TypeScript

import react from "@vitejs/plugin-react";
import path from "path";
import { defineConfig } from "vitest/config";
// https://vitejs.dev/config/
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
export default defineConfig({
plugins: [react()],
test: {
environment: "jsdom",
globals: true,
setupFiles: ["dotenv/config"],
},
resolve: {
alias: {
"@": path.resolve(__dirname, "."),
},
},
});