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(); - +