Inline source maps in dev build (#18970)

* Inline source maps in dev build

* Update readme

* correct command

* Use env var

* Update location
This commit is contained in:
Charles Gagnon
2022-04-07 16:39:08 -07:00
committed by GitHub
parent 683d906138
commit a595fb8fd1
4 changed files with 15 additions and 11 deletions

View File

@@ -30,7 +30,7 @@ Unit tests from layers `common` and `browser` are run inside `chromium`, `webkit
## Coverage
The following command will create a `coverage` folder at the root of the workspace:
The following command will create a `coverage` folder in the `.build` folder at the root of the workspace:
**OS X and Linux**
@@ -38,4 +38,8 @@ The following command will create a `coverage` folder at the root of the workspa
**Windows**
scripts\test --coverage
.\scripts\test.bat --coverage
NOTE: When running locally the coverage will be generated for the .js files because by default the sourcemaps
are inlined. To fix this set the environment variable `SQL_NO_INLINE_SOURCEMAP` to `1`, re-run the
compile/watch task and then re-run the test script with coverage enabled.