Converted mocha unit tests to run using mocha-webpack (mochapack) package

This commit is contained in:
danielyxie
2019-05-09 19:03:13 -07:00
parent cdb5dfec62
commit ece246b391
16 changed files with 2120 additions and 6955 deletions
-6
View File
@@ -9,9 +9,6 @@ module.exports = (env, argv) => {
const outputDirectory = isDevServer ? "dist-dev" : "dist";
const entries = {};
entries[`${outputDirectory}/engine`] = "./src/engine.jsx";
if (!isDevServer) {
entries["test/tests"] = "./test/index.js";
}
const statsConfig = {
builtAt: true,
@@ -73,9 +70,6 @@ module.exports = (env, argv) => {
sortClassName: false,
useShortDoctype: false
},
excludeChunks: [
"test/tests"
]
}),
new MiniCssExtractPlugin({
filename: "[name].css"