Skip to content

Commit

Permalink
fixup! env.md documents the new env var
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Jul 14, 2024
1 parent 8cf9619 commit 99fa2c4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/env.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,26 @@ have any unexpected errors.

The default is `undefined`.

## SUPPRESS_NODE_ERROR_TAMING

Affects the linenumbers shown in stacktraces for TypeScript tests run on Ava
under Node. Stacktraces may contain text like
```
boot/test/bootstrapTests/stack-linenumbers.test.ts:1:104
```
where all TypeScript locations are misreported as on line 1.
***During development only*** when you're willing to sacrifice security for
a more pleasant development experience, setting the environment variable
`SUPPRESS_NODE_ERROR_TAMING` to `'enable'`, such as by
```sh
$ export SUPPRESS_NODE_ERROR_TAMING=enabled
```
should cause such stacktrace text to instead look like
```
boot/test/bootstrapTests/stack-linenumbers.test.ts:40:32
```
with correct positions into the TypeScript source.

## SWINGSET_WORKER_TYPE

Affects: solo, unit tests
Expand Down

0 comments on commit 99fa2c4

Please sign in to comment.