From db5fdb1fcb0790291104377ada30077d87de8277 Mon Sep 17 00:00:00 2001 From: danielyxie Date: Thu, 9 May 2019 19:51:56 -0700 Subject: [PATCH] Last fixes to unit test build configuration --- package.json | 1 + test/README.md | 2 +- test/index.html | 2 +- webpack.config-test.js | 8 ++++++++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 58bf155cf..52f7c9e24 100644 --- a/package.json +++ b/package.json @@ -109,6 +109,7 @@ "start:dev": "webpack-dev-server --progress --env.devServer --mode development", "build": "webpack --mode production", "build:dev": "webpack --mode development", + "build:test": "webpack --config webpack.config-test.js", "lint": "npm run lint:typescript & npm run lint:javascript & npm run lint:style", "lint:javascript": "eslint *.js ./src/**/*.js ./tests/**/*.js ./utils/**/*.js", "lint:style": "stylelint ./css/*", diff --git a/test/README.md b/test/README.md index cf0484dd7..b31585be2 100644 --- a/test/README.md +++ b/test/README.md @@ -1,5 +1,5 @@ # Unit Tests This directory contains unit tests for Bitburner. -Unit tests use Mocha/Chai and are run using mochapack (mocha-webpack fork). +Unit tests use Mocha/Chai and are run using mochapack (a mocha-webpack fork). Run the test command with `npm run test` diff --git a/test/index.html b/test/index.html index da13a15cb..6f4fa6b23 100644 --- a/test/index.html +++ b/test/index.html @@ -15,7 +15,7 @@ mocha.setup('bdd'); mocha.checkLeaks(); - +