From f154303f7606427ef1c9bc24fd0a78171cba76bb Mon Sep 17 00:00:00 2001 From: davidodenwald Date: Sun, 19 Mar 2023 18:02:07 +0100 Subject: [PATCH] add test coverage and check html files on watch mode --- .gitignore | 3 ++- jest.config.js | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ab84829..c5d44aa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .vscode node_modules -lib \ No newline at end of file +lib +coverage \ No newline at end of file diff --git a/jest.config.js b/jest.config.js index 1c2f24e..644f56c 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,4 +1,8 @@ +const { defaults } = require("jest-config"); + /** @type {import('@jest/types').Config.InitialOptions} */ module.exports = () => ({ preset: "ts-jest", + moduleFileExtensions: [...defaults.moduleFileExtensions, "html"], + collectCoverage: true, });