Skip to content

Commit

Permalink
Add good configuration for jest mock (#2552)
Browse files Browse the repository at this point in the history
* Add good configuration for jest mock

* Add test

* Fix pb with Found errors in [ts-standard] linter!

* Another test

* Add file to ts-standard ignore

* Simplify config
  • Loading branch information
xavierfacq authored Jan 3, 2024
1 parent 189d29a commit 739b6b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@
"axios-mock-adapter": "^1.22.0",
"babel-preset-gatsby": "^3.12.1",
"gatsby-cli": "^5.12.4",
"jest-canvas-mock": "^2.5.2",
"jsdom": "^22.1.0",
"prettier": "3.1.1",
"vitest": "^1.0.4",
"vitest-axe": "^1.0.0-pre.3",
"vitest-canvas-mock": "0.3.3",
"jest-canvas-mock": "2.5.2"
"vitest-canvas-mock": "^0.3.3"
},
"overrides": {
"gatsby-plugin-react-i18next": {
Expand Down
1 change: 1 addition & 0 deletions vitest-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import React from 'react'
import 'vitest-axe/extend-expect'
import '@testing-library/jest-dom'
import 'vitest-canvas-mock'
import 'jest-canvas-mock';

expect.extend(axeMatchers);

Expand Down

0 comments on commit 739b6b9

Please sign in to comment.