Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hueyy committed Dec 26, 2023
1 parent b65097f commit 117156a
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module.exports = {
`sort-keys-fix`,
`import`,
`react-hooks`,
`jest`,
],
processor: `disable/disable`,
root: true,
Expand Down
5 changes: 3 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Config } from 'jest'
import { defaults } from 'jest-config'

const config = {
const config: Config = {
moduleDirectories: [
`node_modules`,
`src`,
Expand All @@ -27,7 +28,7 @@ const config = {
"^.+\\.svg$": `<rootDir>/tests/svgTransform.js`,
},
transformIgnorePatterns: [
`node_modules/(?!(leven|@testing-library/preact|preact)/)`,
`<rootDir>/node_modules/.pnpm/(?!(leven|@testing-library\\+preact|preact)@)`,
],
}

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"eslint-config-preact": "^1.3.0",
"eslint-plugin-disable": "^2.0.3",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^27.6.0",
"eslint-plugin-json-format": "^2.0.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-node": "^11.1.0",
Expand Down
25 changes: 25 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 117156a

Please sign in to comment.