mirror of
https://github.com/thelounge/thelounge
synced 2024-11-27 06:20:26 +00:00
ecede860ef
This gets us one step closer to cross-browser testing 🎉
22 lines
524 B
JavaScript
22 lines
524 B
JavaScript
"use strict";
|
|
|
|
const path = require("path");
|
|
const config = require("./webpack.config.js");
|
|
|
|
config.entry = {
|
|
"js/bundle.test.js": `mocha-loader!${path.join(__dirname, "test/client/index.js")}`,
|
|
};
|
|
|
|
// Instrumentation for testing with mocha
|
|
config.module.rules.push({
|
|
test: /\.js$/,
|
|
include: path.join(__dirname, "test/client"),
|
|
use: "mocha-loader",
|
|
});
|
|
|
|
// Tell the webserver where to load the HTML reporter file from
|
|
config.devServer = {
|
|
contentBase: path.join(__dirname, "test/client"),
|
|
};
|
|
|
|
module.exports = config;
|