diff --git a/Makefile b/Makefile index 52bce1798..b4a04ed22 100755 --- a/Makefile +++ b/Makefile @@ -67,7 +67,7 @@ watch: ## unit-test: Run the unit tests. ESBUILD_TESTS = unit-test/background/*.js unit-test/background/**/*.js unit-test/ui/**/*.js unit-test/shared-utils/*.js unit-test: - $(ESBUILD) --outdir=build/test --inject:./unit-test/inject-chrome-shim.js $(ESBUILD_TESTS) + $(ESBUILD) --sourcemap=inline --outdir=build/test --inject:./unit-test/inject-chrome-shim.js $(ESBUILD_TESTS) node_modules/.bin/karma start karma.conf.js .PHONY: unit-test diff --git a/unit-test/README.md b/unit-test/README.md index 248d19566..f455e9766 100644 --- a/unit-test/README.md +++ b/unit-test/README.md @@ -12,3 +12,10 @@ Tests can be run as follows: - `npm test`: Run all tests (both node and browser). - `npm run test.unit`: Run only browser-based unit tests. - `npm run test.node`: Run only node-based unit tests. + +## Notes + +- To reduce the amount of noise when running the tests, `console.log()` and + `console.debug()` output is suppressed. If you need to log something to the + console while working on the tests use `console.warn()` or `console.error()` + instead.