Skip to content

Commit

Permalink
ci: fix vitest (#4966)
Browse files Browse the repository at this point in the history
* change to vi

* ci: fix vitest

* remove unnecessary issues
  • Loading branch information
mikeldking authored Oct 11, 2024
1 parent 5990585 commit 9e700a1
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@
"typescript": "~5.4.5",
"vite": "^5.3.6",
"vite-plugin-relay": "^2.1.0",
"vitest": "^2.1.2"
"vitest": "^2.1.2",
"vitest-canvas-mock": "^0.3.3"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
Expand Down
33 changes: 33 additions & 0 deletions app/pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions app/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default defineConfig(({ command }) => {
include: ["../__tests__/*.test.ts", "**/__tests__/*.test.ts"],
exclude: ["../node_modules/**"],
environment: "jsdom",
setupFiles: ["./vitest.setup.ts"],
globals: true,
},
build: {
Expand Down
3 changes: 1 addition & 2 deletions app/jest.setup.ts → app/vitest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "jest-canvas-mock";
jest.mock("@phoenix/config");
import "vitest-canvas-mock";

Object.defineProperty(window, "Config", {
value: {
Expand Down

0 comments on commit 9e700a1

Please sign in to comment.