forked from jest-community/vscode-jest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
315 lines (315 loc) · 9.51 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
{
"name": "vscode-jest",
"displayName": "Jest",
"description": "Use Facebook's Jest With Pleasure.",
"version": "4.0.0-beta.0",
"publisher": "Orta",
"engines": {
"vscode": "^1.23.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"
},
"jest.pathToJest": {
"description": "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"
},
"jest.pathToConfig": {
"description": "The path to your Jest configuration file",
"type": "string",
"default": "",
"scope": "resource"
},
"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"
},
"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"
},
"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.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"
},
"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"
}
}
},
"commands": [
{
"command": "io.orta.jest.start",
"title": "Jest: Start Runner"
},
{
"command": "io.orta.jest.stop",
"title": "Jest: Stop Runner"
},
{
"command": "io.orta.jest.restart",
"title": "Jest: Restart Runner"
},
{
"command": "io.orta.jest.show-channel",
"title": "Jest: Show Test Output Channel"
},
{
"command": "io.orta.jest.coverage.toggle",
"title": "Jest: Toggle Coverage Overlay"
}
],
"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/jest/bin/jest\"",
"args": [
"--runInBand"
],
"cwd": "^\"\\${workspaceFolder}\"",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true
}
},
{
"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"
],
"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"
],
"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 --info-verbosity verbose",
"lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\" \"*.json\" \"*.js\" ",
"test": "jest",
"watch-test": "yarn test -- --watch"
},
"dependencies": {
"istanbul-lib-coverage": "^1.1.1",
"istanbul-lib-source-maps": "^1.1.0",
"jest-editor-support": "^27.2.0",
"jest-snapshot": "^25.5.0"
},
"devDependencies": {
"@types/jest": "^25.2.1",
"@types/node": "^8.0.31",
"@types/vscode": "^1.23.0",
"@typescript-eslint/eslint-plugin": "^2.32.0",
"@typescript-eslint/parser": "^2.32.0",
"coveralls": "^3.1.0",
"danger": "^10.1.1",
"eslint": "^7.0.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jest": "^23.10.0",
"eslint-plugin-jsdoc": "^25.2.0",
"eslint-plugin-prefer-arrow": "^1.2.1",
"eslint-plugin-prettier": "^3.1.3",
"jest": "^25.5.0",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"ts-jest": "^25.4.0",
"ts-loader": "^7.0.1",
"typescript": "^3.8.3",
"vscode-test": "^1.3.0",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
},
"__metadata": {
"id": "7997a8ae-1fae-4022-b834-12f6318aeffd",
"publisherDisplayName": "Orta",
"publisherId": "c22b4001-1af3-48d1-87ed-490c6c3b747f"
}
}