Commit 0eead8c
committed
test: add common.skipIfEslintMissing
We've added a number of tests that hook into ESLint which can error
when running the test suite with the distributed tarball. This PR
adds a new test helper `common.skipIfEslintMissing` and will skip
remaining tests in a file when `ESLint` is not available at
`tools/node_modules/eslint`
PR-URL: #18807
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>1 parent 840a2ea commit 0eead8cCopy full SHA for 0eead8c
File tree
Expand file treeCollapse file tree
14 files changed
+49
-12
lines changedOpen diff view settings
Filter options
- test
- common
- parallel
Expand file treeCollapse file tree
14 files changed
+49
-12
lines changedOpen diff view settings
Collapse file
+5Lines changed: 5 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
358 | 358 | |
359 | 359 | |
360 | 360 | |
| 361 | + |
| 362 | + |
| 363 | + |
| 364 | + |
| 365 | + |
361 | 366 | |
362 | 367 | |
363 | 368 | |
|
Collapse file
+8Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
494 | 494 | |
495 | 495 | |
496 | 496 | |
| 497 | + |
| 498 | + |
| 499 | + |
| 500 | + |
| 501 | + |
| 502 | + |
| 503 | + |
| 504 | + |
497 | 505 | |
498 | 506 | |
499 | 507 | |
|
Collapse file
test/parallel/test-eslint-crypto-check.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-crypto-check.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
| 4 | + |
| 5 | + |
4 | 6 | |
5 | 7 | |
6 | 8 | |
|
Collapse file
test/parallel/test-eslint-lowercase-name-for-primitive.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-lowercase-name-for-primitive.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
| 4 | + |
| 5 | + |
4 | 6 | |
5 | 7 | |
6 | 8 | |
|
Collapse file
test/parallel/test-eslint-no-let-in-for-declaration.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-no-let-in-for-declaration.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
| 4 | + |
| 5 | + |
4 | 6 | |
5 | 7 | |
6 | 8 | |
|
Collapse file
test/parallel/test-eslint-no-unescaped-regexp-dot.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-no-unescaped-regexp-dot.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
| 4 | + |
| 5 | + |
4 | 6 | |
5 | 7 | |
6 | 8 | |
|
Collapse file
test/parallel/test-eslint-number-isnan.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-number-isnan.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
| 4 | + |
| 5 | + |
4 | 6 | |
5 | 7 | |
6 | 8 | |
|
Collapse file
test/parallel/test-eslint-prefer-assert-iferror.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-prefer-assert-iferror.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
| 4 | + |
| 5 | + |
4 | 6 | |
5 | 7 | |
6 | 8 | |
|
Collapse file
test/parallel/test-eslint-prefer-assert-methods.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-prefer-assert-methods.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
| 4 | + |
| 5 | + |
4 | 6 | |
5 | 7 | |
6 | 8 | |
|
Collapse file
test/parallel/test-eslint-prefer-common-expectserror.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-prefer-common-expectserror.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
| 4 | + |
| 5 | + |
4 | 6 | |
5 | 7 | |
6 | 8 | |
|
0 commit comments