Commit e68d837
committed
Silence logger in tests
At the moment, the logger will log to console during tests, which is
noisy and undesirable.
This change adds a test setup file, which silences the logger by setting
all of its methods to no-ops.
This behaviour can be overridden with the `LOGGING` environment
variable:
```bash
LOGGING=true npm test
```1 parent 7b57400 commit e68d837
2 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments