Skip to content

Commit

Permalink
fix(typecheck): merge configs & temporarily disable source errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavPetrik committed Mar 6, 2024
1 parent 01123b8 commit 0bb1fb4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 19 deletions.
16 changes: 16 additions & 0 deletions vite.config.mts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="vitest" />
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";

Expand All @@ -6,4 +7,19 @@ export default defineConfig({
define: {
"process.env": {},
},
test: {
globals: true,
environment: "happy-dom",
setupFiles: ["./setup.ts"],
coverage: {
provider: "v8",
include: ["src/@(atoms|components|fields|hooks)"],
exclude: ["**/*.@(mock|stories|test-d).@(ts|tsx)"],
},
typecheck: {
// TODO(enable): Jest matchers have missing types for some reason
// https://github.com/vitest-dev/vitest/issues/5256#issuecomment-1980431555
ignoreSourceErrors: true,
},
},
});
19 changes: 0 additions & 19 deletions vitest.config.mts

This file was deleted.

0 comments on commit 0bb1fb4

Please sign in to comment.