Skip to content

Commit

Permalink
unit tests working and not working
Browse files Browse the repository at this point in the history
  • Loading branch information
jonstieglitz committed Sep 10, 2021
1 parent 547f6d2 commit 5416d66
Show file tree
Hide file tree
Showing 8 changed files with 397 additions and 72 deletions.
4 changes: 0 additions & 4 deletions enzyme.config.ts

This file was deleted.

17 changes: 11 additions & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module.exports = {
verbose: true,
moduleNameMapper: {
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
},
setupFiles: ['<rootDir>/define-deprecated-global.js'],
// testEnvironment: 'jsdom',
errorOnDeprecated: true,
"moduleNameMapper": {
"^react-native$": "react-native-web",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "identity-obj-proxy"
},
preset: 'ts-jest',
collectCoverageFrom: [
'src/**/*.{js,jsx,ts,tsx}'
Expand All @@ -15,8 +15,13 @@ module.exports = {
'/.*.test.[jt]sx?$',
'/node_modules'
],
setupFilesAfterEnv: [
'<rootDir>/enzyme.config.ts'
"setupFiles": [
"react-app-polyfill/jsdom"
],
"setupFilesAfterEnv": [],
"testMatch": [
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
],
snapshotSerializers: [
'enzyme-to-json/serializer'
Expand Down
Loading

0 comments on commit 5416d66

Please sign in to comment.