Compile mocha test files
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Manuel Thalmann 2022-12-02 01:11:30 +01:00
parent 16453d44a7
commit a409ebb160

View file

@ -13,7 +13,13 @@ let generator = (env: any, argv: any): Configuration[] =>
target: "web",
mode: env.production ? "production" : "development",
entry: {
main: "./src/index.ts"
main: "./src/index.ts",
...(
env.production ?
{} :
{
"tests/main.test": "./src/tests/main.test.ts"
})
},
output: {
filename: "[name].js",