add test coverage and check html files on watch mode

This commit is contained in:
davidodenwald 2023-03-19 18:02:07 +01:00
parent e54ce4ba27
commit f154303f76
2 changed files with 6 additions and 1 deletions

3
.gitignore vendored
View file

@ -1,3 +1,4 @@
.vscode
node_modules
lib
lib
coverage

View file

@ -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,
});