Skip to content

Commit

Permalink
Upgrade jest to latest version
Browse files Browse the repository at this point in the history
Dependabot Jest upgrade PR cause all tests to fail

Manually do upgrade with fix for Jest tests:
- 'ts-jest' version required upgrade: kulshekhar/ts-jest#2612 (comment)
- Add 'testEnvironment' to Jest config: https://stackoverflow.com/questions/67373953/jest-fails-with-self-is-not-defined-when-importing-react-diagrams
  • Loading branch information
TomJKing committed Aug 31, 2021
1 parent 6183f52 commit 95ba486
Show file tree
Hide file tree
Showing 3 changed files with 2,052 additions and 7,300 deletions.
4 changes: 2 additions & 2 deletions npm/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module.exports = {
preset: "ts-jest",
testEnvironment: 'jsdom',
globals: {
TDR_IDENTITY_PROVIDER_NAME: "TEST_AUTH_URL",
TDR_IDENTITY_POOL_ID: "TEST_IDENTITY_POOL",
API_URL: true,
STAGE: "stage",
REGION: "region",
METADATA_UPLOAD_BATCH_SIZE: 3
},
preset: "ts-jest"
}
}

0 comments on commit 95ba486

Please sign in to comment.