From bc4050950904fa11d56c2c640aeedf7e0702f62f Mon Sep 17 00:00:00 2001 From: Jordan Thomson Date: Sat, 14 Dec 2024 20:02:33 +1100 Subject: [PATCH] jest code coverage --- jest.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jest.config.js b/jest.config.js index 33e1535..6eeb4ff 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,8 +1,9 @@ /** @type {import('ts-jest').JestConfigWithTsJest} **/ module.exports = { + collectCoverage: true, restoreMocks: true, testEnvironment: 'jsdom', transform: { - '^.+.(j|t)sx?$': ['ts-jest', {}] - } + '^.+.(j|t)sx?$': ['ts-jest', {}], + }, };