forked from jest-community/vscode-jest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
433 lines (433 loc) · 14.1 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
{
"name": "vscode-jest",
"displayName": "Jest",
"description": "Use Facebook's Jest With Pleasure.",
"version": "4.0.3",
"publisher": "Orta",
"engines": {
"vscode": "^1.45.0"
},
"author": {
"name": "Orta Therox, ConnectDotz & Sean Poulter",
"url": "https://github.com/jest-community/vscode-jest"
},
"repository": {
"type": "git",
"url": "https://github.com/jest-community/vscode-jest"
},
"galleryBanner": {
"theme": "dark",
"color": "#384357"
},
"categories": [
"Other"
],
"keywords": [
"jest",
"debug",
"snippet",
"react",
"multi-root ready"
],
"activationEvents": [
"workspaceContains:jest.config.js",
"workspaceContains:jest.json",
"workspaceContains:node_modules/.bin/jest",
"workspaceContains:node_modules/react-scripts/node_modules/.bin/jest",
"workspaceContains:node_modules/react-native-scripts",
"onCommand:io.orta.jest.start"
],
"main": "./out/extension",
"icon": "images/vscode-jest.png",
"extensionKind": [
"workspace"
],
"contributes": {
"languages": [
{
"id": "jest-snapshot",
"extensions": [
".js.snap",
".jsx.snap",
".ts.snap",
".tsx.snap"
]
}
],
"grammars": [
{
"language": "jest-snapshot",
"scopeName": "source.jest.snap",
"path": "./syntaxes/jest-snapshot.tmLanguage"
}
],
"configuration": {
"type": "object",
"title": "Jest configuration",
"properties": {
"jest.autoEnable": {
"description": "Automatically start Jest for this project",
"type": "boolean",
"default": true,
"scope": "resource",
"markdownDeprecationMessage": "**Deprecated**: please use `#jest.autoRun#` instead."
},
"jest.jestCommandLine": {
"description": "The command line to start jest tests. It should be the same command line users run jest tests from a terminal/shell, with ability to append extra arguments (by the extension at runtime)",
"type": "string",
"scope": "resource"
},
"jest.pathToJest": {
"description": "(deprecated) The path to the Jest binary, or an npm command to run tests suffixed with `--` e.g. `node_modules/.bin/jest` or `npm test --`",
"type": "string",
"default": null,
"scope": "resource",
"markdownDeprecationMessage": "**Deprecated**: please use `#jest.jestCommandLine#` instead."
},
"jest.pathToConfig": {
"description": "(deprecated) The path to your Jest configuration file",
"type": "string",
"default": "",
"scope": "resource",
"markdownDeprecationMessage": "**Deprecated**: please use `#jest.jestCommandLine#` instead."
},
"jest.rootPath": {
"description": "The path to your frontend src folder",
"type": "string",
"default": "",
"scope": "resource"
},
"jest.enableInlineErrorMessages": {
"description": "Whether errors should be reported inline on a file",
"type": "boolean",
"default": false,
"scope": "resource",
"markdownDeprecationMessage": "**Deprecated**: in favor of vscode hovering message"
},
"jest.enableSnapshotUpdateMessages": {
"description": "Whether snapshot update messages should show",
"type": "boolean",
"default": true,
"scope": "resource"
},
"jest.runAllTestsFirst": {
"description": "Run all tests before starting Jest in watch mode",
"type": "boolean",
"default": true,
"scope": "resource",
"markdownDeprecationMessage": "**Deprecated**: in favor of `#jest.autoRun#`"
},
"jest.showCoverageOnLoad": {
"description": "Show code coverage when extension starts (if collected)",
"type": "boolean",
"default": false,
"scope": "resource"
},
"jest.coverageFormatter": {
"description": "Coverage formatter to use",
"type": "string",
"enum": [
"DefaultFormatter",
"GutterFormatter"
],
"default": "DefaultFormatter",
"scope": "resource"
},
"jest.coverageColors": {
"markdownDescription": "Coverage indicator color override. See [Coverage Colors](https://github.com/jest-community/vscode-jest/blob/master/README.md#coverageColors) for details and examples",
"type": "object",
"default": null,
"scope": "resource"
},
"jest.enableCodeLens": {
"description": "Whether codelens for debugging should show",
"type": "boolean",
"default": true,
"scope": "window"
},
"jest.debugCodeLens.showWhenTestStateIn": {
"description": "Show the debug CodeLens when the it/test block state is in this collection",
"type": "array",
"items": {
"enum": [
"fail",
"pass",
"skip",
"unknown"
]
},
"default": [
"fail",
"unknown"
],
"scope": "window"
},
"jest.enableSnapshotPreviews": {
"description": "Whether snapshot previews should show",
"type": "boolean",
"default": true,
"scope": "window"
},
"jest.restartJestOnSnapshotUpdate": {
"description": "Restart Jest runner after updating the snapshots",
"type": "boolean",
"default": false,
"scope": "resource",
"markdownDeprecationMessage": "**Deprecated**: no need to restart jest after snapshot update"
},
"jest.debugMode": {
"description": "Enable debug mode to diagnose plugin issues. (see developer console)",
"type": "boolean",
"default": false,
"scope": "resource"
},
"jest.disabledWorkspaceFolders": {
"description": "Disabled workspace folders names in multiroot environment",
"type": "array",
"items": "string",
"default": [],
"scope": "window"
},
"jest.autoRun": {
"markdownDescription": "Control when jest should run (changed) tests. It supports multiple models, such as fully automated, fully manual and onSave... See [AutoRun](https://github.com/jest-community/vscode-jest/blob/master/README.md#how-to-trigger-the-test-run) for details and examples",
"type": [
"object",
"string",
"null"
],
"default": null,
"scope": "resource"
}
}
},
"commands": [
{
"command": "io.orta.jest.start",
"title": "Jest: Start All Runners"
},
{
"command": "io.orta.jest.stop",
"title": "Jest: Stop All Runners"
},
{
"command": "io.orta.jest.toggle-coverage",
"title": "Jest: Toggle Coverage"
},
{
"command": "io.orta.jest.workspace.start",
"title": "Jest: Start Runner (Select Workspace)"
},
{
"command": "io.orta.jest.workspace.stop",
"title": "Jest: Stop Runner (Select Workspace)"
},
{
"command": "io.orta.jest.workspace.toggle-coverage",
"title": "Jest: Toggle Coverage (Select Workspace)"
},
{
"command": "io.orta.jest.workspace.run-all-tests",
"title": "Jest: Run All Tests (Select Workspace)"
},
{
"command": "io.orta.jest.run-all-tests",
"title": "Jest: Run All Tests"
},
{
"command": "io.orta.jest.editor.workspace.run-all-tests",
"title": "Jest: Run All Tests in Current Workspace"
},
{
"command": "io.orta.jest.editor.workspace.toggle-coverage",
"title": "Jest: Toggle Coverage for Current Workspace"
},
{
"command": "io.orta.jest.editor.run-all-tests",
"title": "Jest: Run Related Tests"
},
{
"command": "io.orta.jest.setup-extension",
"title": "Jest: Setup Extension (Beta)"
}
],
"menus": {
"commandPalette": [
{
"command": "io.orta.jest.workspace.start",
"when": "workspaceFolderCount > 1"
},
{
"command": "io.orta.jest.workspace.stop",
"when": "workspaceFolderCount > 1"
},
{
"command": "io.orta.jest.workspace.toggle-coverage",
"when": "workspaceFolderCount > 1"
},
{
"command": "io.orta.jest.editor.workspace.toggle-coverage",
"when": "workspaceFolderCount > 1"
},
{
"command": "io.orta.jest.workspace.run-all-tests",
"when": "jest:run.interactive && workspaceFolderCount > 1"
},
{
"command": "io.orta.jest.run-all-tests",
"when": "jest:run.interactive"
},
{
"command": "io.orta.jest.editor.workspace.run-all-tests",
"when": "jest:run.interactive && workspaceFolderCount > 1"
},
{
"command": "io.orta.jest.editor.run-all-tests",
"when": "jest:never"
}
],
"editor/context": [
{
"when": "jest:run.interactive && editorLangId =~ /(javascript|javascriptreact|typescript|typescriptreact)/ ",
"command": "io.orta.jest.editor.run-all-tests",
"group": "Jest"
}
]
},
"keybindings": [
{
"command": "io.orta.jest.editor.run-all-tests",
"key": "ctrl+alt+t",
"mac": "ctrl+alt+t",
"when": "jest:run.interactive && editorLangId =~ /(javascript|javascriptreact|typescript|typescriptreact)/ "
}
],
"debuggers": [
{
"type": "vscode-jest-tests",
"label": "Debug Jest tests using vscode-jest",
"languages": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"configurationSnippets": [
{
"label": "Jest: Default jest configuration",
"description": "Running tests by directly running jest",
"body": {
"type": "node",
"name": "vscode-jest-tests",
"request": "launch",
"program": "^\"\\${workspaceFolder}/node_modules/.bin/jest\"",
"args": [
"--runInBand",
"--watchAll=false"
],
"cwd": "^\"\\${workspaceFolder}\"",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"windows": {
"program": "^\"\\${workspaceFolder}/node_modules/jest/bin/jest\""
}
}
},
{
"label": "Jest: create-react-app",
"description": "Running jest within apps bootstrapped by create-react-app (and similar); you may have to edit `runtimeExecutable`",
"body": {
"type": "node",
"name": "vscode-jest-tests",
"request": "launch",
"runtimeExecutable": "^\"\\${workspaceFolder}/node_modules/.bin/react-scripts\"",
"args": [
"test",
"--env=jsdom",
"--runInBand",
"--watchAll=false"
],
"cwd": "^\"\\${workspaceFolder}\"",
"console": "integratedTerminal",
"protocol": "inspector",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true
}
},
{
"label": "Jest: create-react-app (ejected)",
"description": "Running jest within apps bootstrapped by create-react-app (and similar) after ejecting",
"body": {
"type": "node",
"name": "vscode-jest-tests",
"request": "launch",
"program": "^\"\\${workspaceFolder}/scripts/test\"",
"args": [
"--env=jsdom",
"--runInBand",
"--watchAll=false"
],
"cwd": "^\"\\${workspaceFolder}\"",
"console": "integratedTerminal",
"protocol": "inspector",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true
}
}
]
}
]
},
"scripts": {
"ci": "yarn lint && yarn test --coverage",
"clean-out": "rimraf ./out",
"vscode:prepublish": "yarn clean-out && yarn compile",
"compile": "webpack --mode production",
"watch": "webpack --mode development --watch --progress",
"lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\" \"*.json\" \"*.js\" ",
"test": "jest",
"watch-test": "yarn test -- --watch",
"tsc": "tsc --noEmit"
},
"dependencies": {
"istanbul-lib-coverage": "^3.0.0",
"istanbul-lib-source-maps": "^4.0.0",
"jest-editor-support": "^29.0.0",
"jest-snapshot": "^25.5.0",
"vscode-codicons": "^0.0.4"
},
"devDependencies": {
"@types/istanbul-lib-coverage": "^2.0.2",
"@types/istanbul-lib-source-maps": "^4.0.1",
"@types/jest": "^26.0.15",
"@types/node": "^8.0.31",
"@types/vscode": "^1.45.0",
"@typescript-eslint/eslint-plugin": "^4.14.2",
"@typescript-eslint/parser": "^4.14.2",
"copy-webpack-plugin": "^8.1.0",
"coveralls": "^3.1.0",
"danger": "^10.1.1",
"eslint": "^7.0.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.1.3",
"eslint-plugin-jsdoc": "^31.6.0",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-prettier": "^3.3.1",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"raw-loader": "^4.0.1",
"rimraf": "^3.0.2",
"ts-jest": "^26.5.2",
"ts-loader": "^7.0.1",
"typescript": "^4.2.2",
"vscode-test": "^1.3.0",
"webpack": "^5.30.0",
"webpack-cli": "^4.6.0"
},
"__metadata": {
"id": "7997a8ae-1fae-4022-b834-12f6318aeffd",
"publisherDisplayName": "Orta",
"publisherId": "c22b4001-1af3-48d1-87ed-490c6c3b747f"
}
}