Skip to content

Commit 84bd080

Browse files
authored
ci: add node 16 (#3378)
1 parent 64d0f11 commit 84bd080

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
strategy:
5858
matrix:
5959
os: [ubuntu-latest, windows-latest, macos-latest]
60-
node-version: [12.x, 14.x]
60+
node-version: [12.x, 14.x, 16.x]
6161
webpack-version: [4, latest]
6262

6363
runs-on: ${{ matrix.os }}

test/helpers/test-bin.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ function normalizeStderr(stderr, options = {}) {
5656

5757
const networkIPv6 = internalIp.v6.sync();
5858

59+
// normalize node warnings
60+
normalizedStderr = normalizedStderr.replace(
61+
/.*DeprecationWarning.*(\n)*/gm,
62+
''
63+
);
64+
normalizedStderr = normalizedStderr.replace(
65+
/.*Use `node --trace-deprecation ...` to show where the warning was created.*(\n)*/gm,
66+
''
67+
);
68+
5969
if (networkIPv6) {
6070
normalizedStderr = normalizedStderr.replace(
6171
new RegExp(networkIPv6, 'g'),

0 commit comments

Comments
 (0)