From 2bcecbe4b09813f13ce01bd77c53e7bc1097411a Mon Sep 17 00:00:00 2001 From: Yun Feng Date: Tue, 10 Jan 2023 14:53:46 +1100 Subject: [PATCH] update jest config files --- packages/rrdom-nodejs/jest.config.js | 2 +- packages/rrdom/jest.config.js | 2 +- packages/rrweb-snapshot/jest.config.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/rrdom-nodejs/jest.config.js b/packages/rrdom-nodejs/jest.config.js index e86e13bab9..e5841e937d 100644 --- a/packages/rrdom-nodejs/jest.config.js +++ b/packages/rrdom-nodejs/jest.config.js @@ -1,5 +1,5 @@ /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ -module.exports = { +export default { preset: 'ts-jest', testEnvironment: 'node', }; diff --git a/packages/rrdom/jest.config.js b/packages/rrdom/jest.config.js index e86e13bab9..e5841e937d 100644 --- a/packages/rrdom/jest.config.js +++ b/packages/rrdom/jest.config.js @@ -1,5 +1,5 @@ /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ -module.exports = { +export default { preset: 'ts-jest', testEnvironment: 'node', }; diff --git a/packages/rrweb-snapshot/jest.config.js b/packages/rrweb-snapshot/jest.config.js index 46cb05c37d..e6cdf180ee 100644 --- a/packages/rrweb-snapshot/jest.config.js +++ b/packages/rrweb-snapshot/jest.config.js @@ -1,5 +1,5 @@ /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ -module.exports = { +export default { preset: 'ts-jest', testEnvironment: 'node', testMatch: ['**/**.test.ts'],