Code coverage pre-QA push.

This commit is contained in:
Jade Welton
2026-03-06 11:16:12 -08:00
parent 63cddeb4b8
commit 9f7639f86e
17 changed files with 1234 additions and 217 deletions
+20 -8
View File
@@ -65,16 +65,28 @@ const htmlRule = {
};
// We compile our own code with ts-loader
const typescriptLoaders = [
{
loader: "ts-loader",
options: {
transpileOnly: true,
},
},
];
// When COVERAGE is enabled, add babel-loader with istanbul plugin to instrument code
if (process.env.COVERAGE === "true") {
typescriptLoaders.unshift({
loader: "babel-loader",
options: {
plugins: ["istanbul"],
},
});
}
const typescriptRule = {
test: /\.tsx?$/,
use: [
{
loader: "ts-loader",
options: {
transpileOnly: true,
},
},
],
use: typescriptLoaders,
exclude: /node_modules/,
};