Skip to content

Commit

Permalink
CORRECTLY setup babelrc config, and webpeck is still running
Browse files Browse the repository at this point in the history
  • Loading branch information
JkHz committed Aug 17, 2020
1 parent 15555eb commit ba88294
Show file tree
Hide file tree
Showing 6 changed files with 743 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"presets": [
"@babel/preset-env",
"react-app"
"@babel/preset-react"
]
}
3 changes: 3 additions & 0 deletions client/src/tests/SellerReviews.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ describe('SellerReviews', () => {
const text = wrapper.find('div div h3');
expect(text.text()).toBe('Seller Reviews <StarRatingComponent /> (0)');
});



})
7 changes: 5 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ module.exports = {
setupFiles: [
'<rootDir>/client/src/tests/setupTests.js',
]
};
}


// module.exports = {
// verbose: true,
Expand All @@ -15,7 +16,9 @@ module.exports = {
// moduleFileExtensions: ["js", "jsx"],
// moduleNameMapper: { "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
// "\\.(scss|sass|css)$": "identity-obj-proxy"},
// setupFilesAfterEnv: ["./jest.config.js"],
// setupFiles: [
// '<rootDir>/client/src/tests/setupTests.js',
// ],
// testEnvironment: "enzyme-adapter-react-16",
// testEnvironmentOptions: {
// "enzymeAdapter": "react16",
Expand Down
Loading

0 comments on commit ba88294

Please sign in to comment.