Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete replacing jest with vitest #1419

Merged
merged 5 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
224 changes: 0 additions & 224 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"@mui/material": "^5.16.7",
"@opencast/appkit": "^0.3.1",
"@reduxjs/toolkit": "^2.2.7",
"@testing-library/jest-dom": "^6.5.0",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"deepmerge": "^4.3.1",
Expand Down
5 changes: 0 additions & 5 deletions src/setupTests.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"noEmit": true,
"jsx": "react-jsx",
"jsxImportSource": "@emotion/react",
"types": ["vite/client", "vite-plugin-svgr/client"]
"types": ["vite/client", "vite-plugin-svgr/client", "vitest/globals"]
},
"include": [
"src"
Expand Down
7 changes: 6 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
import eslint from "vite-plugin-eslint";
import child from "child_process";
import { configDefaults } from 'vitest/config'

const commitHash = child.execSync("git rev-parse HEAD").toString().trim();

Expand Down Expand Up @@ -35,7 +36,11 @@ export default defineConfig(() => {
},
test: {
globals: true,
environment: "jsdom",
environment: 'jsdom',
exclude: [
...configDefaults.exclude,
'./tests',
],
},
};
});
Loading