Skip to content

Commit

Permalink
[Fix][Test] Unit tests failing when scss included
Browse files Browse the repository at this point in the history
  • Loading branch information
angel-penchev committed Oct 22, 2021
1 parent 016411b commit 2622df4
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
10 changes: 10 additions & 0 deletions client/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"presets": [
"@babel/env",
"@babel/react",
"@babel/preset-typescript"
],
"plugins": [
"@babel/plugin-proposal-class-properties"
]
}
2 changes: 2 additions & 0 deletions client/package-lock.json

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

15 changes: 15 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"web-vitals": "^2.1.2"
},
"devDependencies": {
"@babel/preset-typescript": "^7.12.1",
"@storybook/addon-actions": "^6.3.12",
"@storybook/addon-essentials": "^6.3.12",
"@storybook/addon-links": "^6.3.12",
Expand All @@ -50,6 +51,7 @@
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-prettier": "^4.0.0",
"identity-obj-proxy": "^3.0.0",
"prettier": "^2.4.1"
},
"scripts": {
Expand Down Expand Up @@ -81,6 +83,14 @@
"react-app/jest"
],
"overrides": [
{
"files": [
"**/*.stories.*"
],
"rules": {
"import/no-anonymous-default-export": "off"
}
},
{
"files": [
"**/*.stories.*"
Expand All @@ -102,5 +112,10 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"jest": {
"moduleNameMapper": {
"\\.(css|scss)$": "identity-obj-proxy"
}
}
}
2 changes: 1 addition & 1 deletion client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"noEmit": true
},
"include": [
"src/*", "types",
"src/*", "types", "src/configuration.ts",
],
"exclude": [
"src/**/*.test.ts",
Expand Down

0 comments on commit 2622df4

Please sign in to comment.