Commit f251ba9
chore(tools): suppress Node.js warnings in snap tests for stable output (#1070)
Add `NODE_NO_WARNINGS=1` to the snap test environment to suppress
Node.js runtime warnings (e.g. `MODULE_TYPELESS_PACKAGE_JSON`) that vary
across Node.js versions.
## Why?
Without this, developers using a different Node.js version than the one
pinned in `.node-version` (22.18.0) will see warnings in stderr that get
captured into snap output, causing false diffs unrelated to actual code
changes.
Co-authored-by: MK (fengmk2) <fengmk2@gmail.com>1 parent 78cb0e2 commit f251ba9
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
248 | 251 | | |
249 | 252 | | |
250 | 253 | | |
| |||
0 commit comments