mirror of
https://github.com/meshtastic/web.git
synced 2026-04-19 05:17:08 -04:00
* fixed tsc errors * fixed tsc errors * fixed tsc errors * fixing tsc errors * fixing more tsc errors * fixing more tsc errors * fixed tsc errors * fixing tsc errors * fixing PR issues * commented out tsc check * completing tsc fixes * updating lockfile * removed react-hooks
33 lines
882 B
TypeScript
33 lines
882 B
TypeScript
import path from "node:path";
|
|
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
import { enableMapSet } from "immer";
|
|
import process from "node:process";
|
|
|
|
enableMapSet();
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@app": path.resolve(process.cwd(), "./src"),
|
|
"@core": path.resolve(process.cwd(), "./src/core"),
|
|
"@pages": path.resolve(process.cwd(), "./src/pages"),
|
|
"@components": path.resolve(process.cwd(), "./src/components"),
|
|
"@layouts": path.resolve(process.cwd(), "./src/layouts"),
|
|
},
|
|
},
|
|
test: {
|
|
environment: "happy-dom",
|
|
globals: true,
|
|
mockReset: true,
|
|
clearMocks: true,
|
|
restoreMocks: true,
|
|
root: path.resolve(process.cwd(), "./src"),
|
|
include: ["**/*.{test,spec}.{ts,tsx}"],
|
|
setupFiles: ["./src/tests/setup.ts"],
|
|
},
|
|
});
|