add test coverage and check html files on watch mode
This commit is contained in:
parent
e54ce4ba27
commit
f154303f76
2 changed files with 6 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
.vscode
|
.vscode
|
||||||
node_modules
|
node_modules
|
||||||
lib
|
lib
|
||||||
|
coverage
|
|
@ -1,4 +1,8 @@
|
||||||
|
const { defaults } = require("jest-config");
|
||||||
|
|
||||||
/** @type {import('@jest/types').Config.InitialOptions} */
|
/** @type {import('@jest/types').Config.InitialOptions} */
|
||||||
module.exports = () => ({
|
module.exports = () => ({
|
||||||
preset: "ts-jest",
|
preset: "ts-jest",
|
||||||
|
moduleFileExtensions: [...defaults.moduleFileExtensions, "html"],
|
||||||
|
collectCoverage: true,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue