Skip to content

Commit

Permalink
Use vi-canvas-mock
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed May 28, 2024
1 parent b2e849a commit 18d648a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 40 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@
"husky": ">=6",
"hyperfine": "^1.0.0",
"istanbul": "^0.4.5",
"jest-canvas-mock": "^2.5.2",
"jest-junit": "^16.0.0",
"lint-staged": ">=10",
"msw": "^2.2.2",
Expand All @@ -145,6 +144,7 @@
"react-is": "^18.3.1",
"react-test-renderer": "^18.3.1",
"storybook": "^8.1.2",
"vi-canvas-mock": "^1.0.0",
"vite": "^4.0.0",
"vite-plugin-inspect": "^0.8.4",
"vite-plugin-svgr": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/setupTests.node.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '@testing-library/jest-dom/vitest'
import './vitest-canvas-mock'
import 'vi-canvas-mock'
import { setProjectAnnotations } from '@storybook/react'
import * as axeMatchers from 'vitest-axe/matchers'
import { cleanup } from '@testing-library/react'
Expand Down
27 changes: 0 additions & 27 deletions src/vitest-canvas-mock.ts

This file was deleted.

22 changes: 11 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8239,7 +8239,6 @@ __metadata:
husky: "npm:>=6"
hyperfine: "npm:^1.0.0"
istanbul: "npm:^0.4.5"
jest-canvas-mock: "npm:^2.5.2"
jest-junit: "npm:^16.0.0"
lint-staged: "npm:>=10"
msw: "npm:^2.2.2"
Expand All @@ -8261,6 +8260,7 @@ __metadata:
styled-components: "npm:^5.3.3"
typescript: "npm:^5.4.5"
use-dark-mode: "npm:^2.3.1"
vi-canvas-mock: "npm:^1.0.0"
vite: "npm:^4.0.0"
vite-plugin-inspect: "npm:^0.8.4"
vite-plugin-svgr: "npm:^4.2.0"
Expand Down Expand Up @@ -12457,16 +12457,6 @@ __metadata:
languageName: node
linkType: hard

"jest-canvas-mock@npm:^2.5.2":
version: 2.5.2
resolution: "jest-canvas-mock@npm:2.5.2"
dependencies:
cssfontparser: "npm:^1.2.1"
moo-color: "npm:^1.0.2"
checksum: 10/094e2e1c773c658fab7e91e9279027fc38a55060865b5b6a3c9acc47fc912fb9d3451ab4fdf544d016578f77b975626707c3a62e396575aa878f46d939c7ca5e
languageName: node
linkType: hard

"jest-changed-files@npm:^29.7.0":
version: 29.7.0
resolution: "jest-changed-files@npm:29.7.0"
Expand Down Expand Up @@ -19121,6 +19111,16 @@ __metadata:
languageName: node
linkType: hard

"vi-canvas-mock@npm:^1.0.0":
version: 1.0.0
resolution: "vi-canvas-mock@npm:1.0.0"
dependencies:
cssfontparser: "npm:^1.2.1"
moo-color: "npm:^1.0.2"
checksum: 10/bfe9d79ce8a835407fe6abe2238ed4e6ba8faf847790d7c16e5c5ee5ffdf4dfcf66e17c6320635bb6033bfa35a47a3eaa870c57f466b51d10485bb8962922739
languageName: node
linkType: hard

"vite-node@npm:1.6.0":
version: 1.6.0
resolution: "vite-node@npm:1.6.0"
Expand Down

0 comments on commit 18d648a

Please sign in to comment.