forked from jest-community/vscode-jest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
226 lines (226 loc) · 7.3 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
{
"name": "vscode-jest",
"displayName": "Jest",
"description": "Use Facebook's Jest With Pleasure.",
"version": "2.7.0",
"publisher": "Orta",
"engines": {
"vscode": "^1.18.0"
},
"author": {
"name": "Orta Therox",
"url": "http://orta.io"
},
"repository": {
"type": "git",
"url": "https://github.com/jest-community/vscode-jest"
},
"galleryBanner": {
"theme": "light",
"color": "#ca461a"
},
"categories": ["Other"],
"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/src/extension",
"icon": "images/vscode-jest.png",
"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
},
"jest.pathToJest": {
"description":
"The path to the Jest binary, or an npm command to run tests prefixed with `--` e.g. `npm test --`",
"type": "string",
"default": "node_modules/.bin/jest"
},
"jest.pathToConfig": {
"description": "The path to your Jest configuration file",
"type": "string",
"default": ""
},
"jest.rootPath": {
"description": "The path to your frontend src folder",
"type": "string",
"default": ""
},
"jest.enableInlineErrorMessages": {
"description": "Whether errors should be reported inline on a file",
"type": "boolean",
"default": true
},
"jest.enableSnapshotUpdateMessages": {
"description": "Whether snapshot update messages should show",
"type": "boolean",
"default": true
},
"jest.runAllTestsFirst": {
"description": "Run all tests before starting Jest in watch mode",
"type": "boolean",
"default": true
},
"jest.showCoverageOnLoad": {
"description": "Show code coverage when extension starts (if collected)",
"type": "boolean",
"default": false
},
"jest.enableCodeLens": {
"description": "Whether codelens for debugging should show",
"type": "boolean",
"default": true
},
"jest.enableSnapshotPreviews": {
"description": "Whether snapshot previews should show",
"type": "boolean",
"default": true
},
"jest.restartJestOnSnapshotUpdate": {
"description": "Restart Jest runner after updating the snapshots",
"type": "boolean",
"default": false
}
}
},
"commands": [
{
"command": "io.orta.jest.start",
"title": "Jest: Start Runner"
},
{
"command": "io.orta.jest.stop",
"title": "Jest: Stop 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"
}
},
{
"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"
}
},
{
"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"
}
}
]
}
]
},
"lint-staged": {
"*.json": ["yarn prettier-write --", "git add"],
"*.ts": ["yarn prettier-write --", "git add"]
},
"scripts": {
"precommit": "lint-staged",
"ci": "yarn lint && yarn test --coverage",
"clean-out": "rimraf ./out",
"vscode:prepublish": "yarn clean-out && tsc -p ./tsconfig.publish.json",
"compile": "tsc -watch -p ./tsconfig.publish.json",
"lint": "node scripts/lint",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "jest --config jest.json",
"watch-test": "yarn test -- --watch",
"prettier": "prettier",
"prettier-write":
"yarn prettier -- --parser typescript --no-semi --single-quote --trailing-comma es5 --write --print-width 120",
"prettier-project": "yarn prettier-write -- '?(__mocks__|src|tests)/**/*.ts'"
},
"devDependencies": {
"@types/jest": "^21.1.1",
"@types/node": "^8.0.31",
"coveralls": "^3.0.0",
"danger": "^2",
"glob": "^7.1.1",
"husky": "^0.14.3",
"jest": "^22.0.4",
"lint-staged": "^4.2.3",
"prettier": "1.7.3",
"rimraf": "^2.6.2",
"tslint": "^5.7.0",
"tslint-config-prettier": "^1.5.0",
"typescript": "2.5.3",
"vscode": "^1.1.6"
},
"dependencies": {
"elegant-spinner": "^1.0.1",
"istanbul-lib-coverage": "^1.1.1",
"istanbul-lib-source-maps": "^1.1.0",
"jest-editor-support": "22.4.0",
"jest-snapshot": "^22.1.2",
"jest-test-typescript-parser": "^22.1.3",
"micromatch": "^2.3.11"
}
}