[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:
@@ -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")',
|
||||
|
Reference in New Issue
Block a user