Skip to content

Commit 4754a82

Browse files
authored
Merge pull request #51 from luizbaldi/testing-library
Testing with react-testing-library
2 parents ea317b8 + 1e7ab28 commit 4754a82

File tree

13 files changed

+6036
-2398
lines changed

13 files changed

+6036
-2398
lines changed

.babelrc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
],
1111
"plugins": [
1212
"babel-plugin-styled-components",
13-
"@babel/plugin-proposal-class-properties"
14-
]
13+
"@babel/plugin-proposal-class-properties",
14+
"@babel/plugin-transform-runtime"
15+
],
16+
"env": {
17+
"test": {
18+
"presets": ["@babel/preset-env"]
19+
}
20+
}
1521
}

jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
setupFilesAfterEnv: ['<rootDir>/test/setup-test']
3+
}

0 commit comments

Comments
 (0)