|
| 1 | +{ |
| 2 | + // Use IntelliSense to learn about possible attributes. |
| 3 | + // Hover to view descriptions of existing attributes. |
| 4 | + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
| 5 | + "version": "0.2.0", |
| 6 | + "configurations": [ |
| 7 | + { |
| 8 | + "type": "node", |
| 9 | + "request": "launch", |
| 10 | + "name": "Run tests", |
| 11 | + "runtimeExecutable": "npm", |
| 12 | + "runtimeArgs": ["run-script", "test"], |
| 13 | + "console": "integratedTerminal" |
| 14 | + }, |
| 15 | + { |
| 16 | + "type": "node", |
| 17 | + "request": "launch", |
| 18 | + "name": "Run current test file", |
| 19 | + "runtimeExecutable": "npm", |
| 20 | + "runtimeArgs": ["run-script", "test"], |
| 21 | + "args": ["--", "-i", "${relativeFile}", "--testPathIgnorePatterns"], |
| 22 | + "console": "integratedTerminal" |
| 23 | + }, |
| 24 | + { |
| 25 | + "type": "node", |
| 26 | + "request": "launch", |
| 27 | + "name": "Run selected test name", |
| 28 | + "runtimeExecutable": "npm", |
| 29 | + "runtimeArgs": ["run-script", "test"], |
| 30 | + "args": [ |
| 31 | + "--", |
| 32 | + "-i", |
| 33 | + "${relativeFile}", |
| 34 | + "-t", |
| 35 | + "${selectedText}", |
| 36 | + "--testPathIgnorePatterns" |
| 37 | + ], |
| 38 | + "console": "integratedTerminal" |
| 39 | + }, |
| 40 | + { |
| 41 | + "type": "node", |
| 42 | + "request": "launch", |
| 43 | + "name": "Update current test file snapshot(s)", |
| 44 | + "runtimeExecutable": "npm", |
| 45 | + "runtimeArgs": ["run-script", "test"], |
| 46 | + "args": [ |
| 47 | + "--", |
| 48 | + "-i", |
| 49 | + "${relativeFile}", |
| 50 | + "--updateSnapshot", |
| 51 | + "--testPathIgnorePatterns" |
| 52 | + ], |
| 53 | + "console": "integratedTerminal" |
| 54 | + }, |
| 55 | + { |
| 56 | + "type": "node", |
| 57 | + "request": "launch", |
| 58 | + "name": "Update selected test name snapshot(s)", |
| 59 | + "runtimeExecutable": "npm", |
| 60 | + "runtimeArgs": ["run-script", "test"], |
| 61 | + "args": [ |
| 62 | + "--", |
| 63 | + "-i", |
| 64 | + "${relativeFile}", |
| 65 | + "-t", |
| 66 | + "${selectedText}", |
| 67 | + "--updateSnapshot", |
| 68 | + "--testPathIgnorePatterns" |
| 69 | + ], |
| 70 | + "console": "integratedTerminal" |
| 71 | + } |
| 72 | + ] |
| 73 | +} |
0 commit comments