Skip to content

Commit

Permalink
dev: Fix jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kschiffer committed Jul 3, 2023
1 parent 78e11b4 commit f562740
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@storybook/react": "^7.0.24",
"@testing-library/cypress": "^9.0.0",
"add-asset-html-webpack-plugin": "^6.0.0",
"babel-jest": "^29.3.1",
"babel-jest": "^29.5.0",
"babel-loader": "^9.1.2",
"babel-plugin-lodash": "^3.3.4",
"babel-plugin-react-intl": "^3.0.1",
Expand Down Expand Up @@ -53,6 +53,7 @@
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.5.3",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"js-yaml": "^4.0.0",
"json": "^11.0.0",
"messageformat-parser": "^4.1.3",
Expand Down Expand Up @@ -134,21 +135,18 @@
"url-template": "^3.1.0",
"yup": "^1.2.0"
},
"resolutions": {
"cypress": "^7.7.0"
},
"babel": {
"extends": "./config/babel.config.json"
},
"jest": {
"setupFiles": [
"setupFilesAfterEnv": [
"<rootDir>/config/jest/setup.js"
],
"testMatch": [
"<rootDir>/pkg/**/*_test.js"
],
"transform": {
"^.+\\.js$": "babel-jest",
"^.+\\.js$": ["babel-jest", { "configFile": "./config/babel.config.json" }],
"\\.(css|styl|less|sass)$": "<rootDir>/config/jest/styles.transform.js",
"\\.(jpg|jpeg|svg|png|woff|woff2|ttf|eot|gif|webp)$": "<rootDir>/config/jest/files.transform.js"
},
Expand All @@ -158,7 +156,8 @@
"^\\@console(.*)": "<rootDir>/pkg/webui/console$1",
"^\\@account(.*)": "<rootDir>/pkg/webui/account$1",
"^\\@assets(.*)": "<rootDir>/pkg/webui/assets$1"
}
},
"testEnvironment": "jest-environment-jsdom"
},
"eslintConfig": {
"extends": "./config/eslintrc.yaml"
Expand Down
7 changes: 2 additions & 5 deletions sdk/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,8 @@
"^.+\\.js$": "babel-jest"
},
"transformIgnorePatterns": [
"node_modules/(?!auto-bind)"
],
"moduleNameMapper": {
"axios": "axios/dist/node/axios.cjs"
}
"node_modules/(?!(auto-bind|query-string|decode-uri-component))/"
]
},
"prettier": "../../config/.prettierrc.js",
"dependencies": {
Expand Down

0 comments on commit f562740

Please sign in to comment.