Remove browser test setup that we never used
This commit is contained in:
parent
e3dfedf8b5
commit
c0708fd955
@ -19,7 +19,6 @@
|
||||
"lint:js": "eslint . --ext .js,.vue --report-unused-disable-directives --color",
|
||||
"start": "node index start",
|
||||
"test": "run-p --aggregate-output --continue-on-error lint:* test:{client,server}",
|
||||
"test:browser": "webpack-dev-server --config=webpack.config-browser.js",
|
||||
"test:client": "nyc --nycrc-path=test/.nycrc-mochapack mochapack --colors --opts=test/mochapack.opts",
|
||||
"test:server": "nyc --nycrc-path=test/.nycrc-mocha mocha --colors",
|
||||
"watch": "webpack --watch"
|
||||
@ -94,7 +93,6 @@
|
||||
"jquery": "3.3.1",
|
||||
"mini-css-extract-plugin": "0.5.0",
|
||||
"mocha": "6.0.2",
|
||||
"mocha-loader": "2.0.1",
|
||||
"mochapack": "1.1.0",
|
||||
"moment": "2.24.0",
|
||||
"mousetrap": "1.6.3",
|
||||
@ -113,7 +111,6 @@
|
||||
"vue-template-compiler": "2.6.10",
|
||||
"vuedraggable": "2.20.0",
|
||||
"webpack": "4.29.6",
|
||||
"webpack-cli": "3.3.0",
|
||||
"webpack-dev-server": "3.2.1"
|
||||
"webpack-cli": "3.3.0"
|
||||
}
|
||||
}
|
||||
|
@ -1,22 +0,0 @@
|
||||
"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/js/*"),
|
||||
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;
|
Loading…
Reference in New Issue
Block a user