[MM-39839] Changes for writing unit tests, some re-org (#1849)

* Move tests to individual folders

* Moved e2e tests to e2e folder, fixed lint issues

* Lint fix
This commit is contained in:
Devin Binnie
2021-11-04 11:29:32 -04:00
committed by GitHub
parent ba974dbf75
commit 0bd5a54c76
23 changed files with 76 additions and 81 deletions

View File

@@ -7,6 +7,7 @@
const path = require('path');
const glob = require('glob');
const merge = require('webpack-merge');
const base = require('./webpack.config.base');
@@ -15,8 +16,8 @@ const WEBSERVER_PORT = 9001;
module.exports = merge(base, {
entry: {
test: './test/unit/index.js',
e2e: './test/specs/index.js',
test: glob.sync('./src/**/*.test.js'),
e2e: './e2e/specs/index.js',
},
output: {
path: path.resolve(__dirname, 'dist/tests'),
@@ -29,7 +30,6 @@ module.exports = merge(base, {
}],
},
externals: {
puppeteer: 'require("puppeteer")',
fs: 'require("fs")',
ws: 'require("ws")',
child_process: 'require("child_process")',