From 4a91f614185199a83d71711c1687b6805ca73d81 Mon Sep 17 00:00:00 2001 From: shrianshChari <30420527+shrianshChari@users.noreply.github.com> Date: Wed, 23 Oct 2024 14:40:40 -0400 Subject: [PATCH] Remove deprecated `globals` field in Jest config (#653) --- calc/jest.config.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/calc/jest.config.js b/calc/jest.config.js index 1e8bdcad4..1777253c7 100644 --- a/calc/jest.config.js +++ b/calc/jest.config.js @@ -4,10 +4,8 @@ module.exports = { coverageDirectory: 'coverage', testPathIgnorePatterns: ['/node_modules/', '/dist/'], coveragePathIgnorePatterns: ['/node_modules/', '/dist/' ], - globals: { - 'ts-jest': { - packageJson: 'package.json', - }, + transform: { + '^.+\\.test\\.ts$': 'ts-jest', }, };