Skip to content

Commit

Permalink
M0nica#66 add @testing-library/react as dev dep and setup jest to wor…
Browse files Browse the repository at this point in the history
…k with tsx imported styles
  • Loading branch information
eLeontev committed Oct 26, 2020
1 parent 022d70a commit 1872a94
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 1 deletion.
1 change: 1 addition & 0 deletions __mocks__/style.mock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
103 changes: 103 additions & 0 deletions package-lock.json

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

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"private": true,
"main": "./pages/index.js",
"jest": {
"verbose": true
"verbose": true,
"moduleNameMapper": {
"\\.(css|less|sass|scss)$": "<rootDir>/__mocks__/style.mock.js"
}
},
"scripts": {
"dev": "next dev",
Expand All @@ -26,6 +29,7 @@
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.11.5",
"@testing-library/react": "^11.1.0",
"@types/node": "^14.0.13",
"@types/react": "^16.9.36",
"babel-jest": "^26.3.0",
Expand Down

0 comments on commit 1872a94

Please sign in to comment.