|
6 | 6 | "avoid": ["helpers.js (script", "0 of"]}, |
7 | 7 | {"why": "the runner counts in the summary line: before, the walk reached it and the count said 0 of 0", |
8 | 8 | "run": ["impact", "normalize"], |
9 | | - "want": ["tests: 3 of 3 test method(s)"]}, |
| 9 | + "want": ["tests: 4 of 4 test method(s)"]}, |
10 | 10 | {"why": "CONTROL: a runner's setup file has top-level code that reaches the change, and is still not a script test", |
11 | 11 | "run": ["impact", "normalize", "--tests"], |
12 | 12 | "avoid": ["setup.js (script", "node src/test/setup.js"]}, |
13 | | - {"why": "a runner no package script names is run by its interpreter, never by a guessed framework", |
| 13 | + {"why": "a runner no package script names, guarded by `require.main === module`, is run by its interpreter, never by a guessed framework", |
14 | 14 | "run": ["impact", "shout", "--tests"], |
15 | 15 | "want": ["smoke.js (script: node src/test/smoke.js)", "text.test.js"], |
16 | 16 | "avoid": ["run.js"]}, |
| 17 | + {"why": "CONTROL: an unguarded script nothing names still counts as a test, but no interpreter is guessed for it (#1570)", |
| 18 | + "run": ["impact", "shout", "--tests"], |
| 19 | + "want": ["loose.js (script: no command found"], |
| 20 | + "avoid": ["node src/test/loose.js"]}, |
17 | 21 | {"why": "CONTROL: a helper imported by a framework test is not a script test, and the framework test keeps its selection", |
18 | 22 | "run": ["impact", "sample", "--tests"], |
19 | 23 | "want": ["text.test.js"], |
|
0 commit comments