|
| 1 | +{"lang": "javascript", |
| 2 | + "checks": [ |
| 3 | + {"why": "a basename matching five indexed files, one of them under --in, answers for that one and names it (#1666)", |
| 4 | + "run": ["impact", "index.js:2", "--in", "packages/a"], |
| 5 | + "want": ["change: runA (at packages/a/src/index.js:2)", "startA"], |
| 6 | + "avoid": ["matches 5 indexed files", "startB", "runB"]}, |
| 7 | + {"why": "the same through path, from everything into the one file under --in", |
| 8 | + "run": ["path", "*", "index.js:2", "--in", "packages/b"], |
| 9 | + "want": ["startB"], |
| 10 | + "avoid": ["matches 5 indexed files", "startA"]}, |
| 11 | + {"why": "a dir/file suffix is narrowed the same way", |
| 12 | + "run": ["impact", "src/index.js:2", "--in", "packages/b"], |
| 13 | + "want": ["change: runB (at packages/b/src/index.js:2)", "startB"], |
| 14 | + "avoid": ["matches 2 indexed files", "startA"]}, |
| 15 | + {"why": "control: a scope that still leaves two files is refused, listing only those two", |
| 16 | + "run": ["impact", "index.js:2", "--in", "packages/c"], |
| 17 | + "expect_error": true, |
| 18 | + "want": ["matches 2 indexed files under *packages/c*", "packages/c/index.js:2", "packages/c/lib/index.js:2"], |
| 19 | + "avoid": ["packages/a/src/index.js", "change: load"]}, |
| 20 | + {"why": "control: the same through path", |
| 21 | + "run": ["path", "*", "index.js:2", "--in", "packages/c"], |
| 22 | + "expect_error": true, |
| 23 | + "want": ["matches 2 indexed files under *packages/c*"], |
| 24 | + "avoid": ["packages/d/index.js"]}, |
| 25 | + {"why": "control: a scope holding none of the files is refused with every file listed", |
| 26 | + "run": ["impact", "index.js:2", "--in", "shared"], |
| 27 | + "expect_error": true, |
| 28 | + "want": ["matches 5 indexed files", "none of them under *shared*", "packages/a/src/index.js:2", "packages/d/index.js:2"]}, |
| 29 | + {"why": "control: without --in the basename is refused as before (#1599)", |
| 30 | + "run": ["impact", "index.js:2"], |
| 31 | + "expect_error": true, |
| 32 | + "want": ["matches 5 indexed files", "packages/a/src/index.js:2", "packages/c/lib/index.js:2"]}, |
| 33 | + {"why": "control: the full path with --in answers for it, labelled as typed", |
| 34 | + "run": ["impact", "packages/a/src/index.js:2", "--in", "packages/a"], |
| 35 | + "want": ["change: runA (at packages/a/src/index.js:2)", "startA"], |
| 36 | + "avoid": ["startB"]}, |
| 37 | + {"why": "a const on the line of a partial path matching two files is refused, not answered for one of them", |
| 38 | + "run": ["impact", "config.js:1"], |
| 39 | + "expect_error": true, |
| 40 | + "want": ["matches 2 indexed files", "packages/a/src/config.js:1", "packages/b/src/config.js:1"], |
| 41 | + "avoid": ["change: variable tokenA", "change: const tokenA"]}, |
| 42 | + {"why": "the same const line with --in answers for the one file under the scope", |
| 43 | + "run": ["impact", "config.js:1", "--in", "packages/b"], |
| 44 | + "want": ["tokenB"], |
| 45 | + "avoid": ["tokenA", "matches 2 indexed files"]}, |
| 46 | + {"why": "control: a partial path matching one file is labelled as typed, with or without --in", |
| 47 | + "run": ["impact", "d/index.js:2", "--in", "packages"], |
| 48 | + "want": ["change: main (at d/index.js:2)"]}]} |
0 commit comments