Skip to content

Commit

Permalink
Update deprecated ts-jest config from globals to transform
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-scheer committed Sep 15, 2022
1 parent a8f06d9 commit c99e405
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/six-pianos-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@apollo/server-integration-testsuite': patch
---

Expand jest peer deps to include v29
15 changes: 9 additions & 6 deletions jest.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ export default {
moduleFileExtensions: [...defaults.moduleFileExtensions, 'ts', 'tsx'],
clearMocks: true,
extensionsToTreatAsEsm: ['.ts'],
globals: {
'ts-jest': {
useESM: true,
tsconfig: '<rootDir>/src/__tests__/tsconfig.json',
diagnostics: true,
},
transform: {
'^.+\\.test.ts$': [
'ts-jest',
{
useESM: true,
tsconfig: '<rootDir>/src/__tests__/tsconfig.json',
diagnostics: true,
},
],
},
moduleNameMapper: {
// Ignore '.js' at the end of imports; part of ESM support.
Expand Down

0 comments on commit c99e405

Please sign in to comment.