mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-06-12 15:37:27 +01:00
Code coverage pre-QA push.
This commit is contained in:
+20
-8
@@ -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/,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user