-
Notifications
You must be signed in to change notification settings - Fork 124
/
package.json
230 lines (230 loc) · 7.28 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
{
"name": "vscode-jest-runner",
"displayName": "Jest Runner",
"description": "Simple way to run or debug a single (or multiple) tests from context-menu",
"version": "0.4.74",
"publisher": "firsttris",
"author": "Tristan Teufel",
"repository": {
"type": "git",
"url": "https://github.com/firsttris/vscode-jest-runner.git"
},
"license": "MIT",
"icon": "public/icon.png",
"engines": {
"vscode": "^1.83.0"
},
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"main": "./dist/extension",
"contributes": {
"configuration": [
{
"title": "Jest-Runner Config",
"properties": {
"jestrunner.configPath": {
"type": "string",
"default": "",
"description": "Jest config path (relative to `${workspaceFolder}` e.g. jest-config.json)",
"scope": "window"
},
"jestrunner.jestPath": {
"type": "string",
"default": "",
"description": "Absolute path to jest bin file (e.g. /usr/lib/node_modules/jest/bin/jest.js)",
"scope": "window"
},
"jestrunner.projectPath": {
"type": "string",
"default": "",
"description": "Absolute path to project directory (e.g. /home/me/project/sub-folder)",
"scope": "window"
},
"jestrunner.debugOptions": {
"type": "object",
"default": {},
"description": "Add or overwrite vscode debug configurations (only in debug mode) (e.g. { \"args\": [\"--no-cache\"] })",
"scope": "window"
},
"jestrunner.runOptions": {
"type": "array",
"default": [],
"items": {
"type": "string",
"description": "CLI Option e.g. --coverage"
},
"description": "Add CLI Options to the Jest Command e.g. https://jestjs.io/docs/en/cli",
"scope": "window"
},
"jestrunner.jestCommand": {
"type": "string",
"default": "",
"description": "Define an alternative Jest command (e.g. for Create React App and similar abstractions)",
"scope": "window"
},
"jestrunner.disableCodeLens": {
"type": "boolean",
"default": false,
"description": "Disable CodeLens feature",
"scope": "window"
},
"jestrunner.runInExternalNativeTerminal": {
"type": "boolean",
"default": false,
"description": "Run jest runner in external native terminal. Disabled on debug mode",
"scope": "window"
},
"jestrunner.codeLens": {
"type": "array",
"default": [
"run",
"debug"
],
"description": "Enable desired codeLens, possible value : 'run', 'debug', 'watch', 'coverage', 'current-test-coverage'. Defaults to ['run', 'debug'] ",
"items": {
"type": "string",
"description": "Either 'run', 'debug', 'watch', 'coverage', 'current-test-coverage'"
},
"scope": "window"
},
"jestrunner.codeLensSelector": {
"type": "string",
"default": "**/*.{test,spec}.{js,jsx,ts,tsx}",
"description": "CodeLens will be shown on files matching this pattern"
},
"jestrunner.enableYarnPnpSupport": {
"type": "boolean",
"default": false,
"description": "Enable if you are using Yarn 2 with Plug'n'Play",
"scope": "window"
},
"jestrunner.changeDirectoryToWorkspaceRoot": {
"type": "boolean",
"default": true,
"description": "Changes directory before execution. The fallback order is:\n1. `jestrunner.projectPath`\n2. the nearest `package.json`\n3. `${workspaceFolder}`",
"scope": "window"
},
"jestrunner.preserveEditorFocus": {
"type": "boolean",
"default": false,
"description": "Preserve focus on editor when running tests",
"scope": "window"
},
"jestrunner.yarnPnpCommand": {
"type": "string",
"default": "yarn-*.*js",
"description": "Command for debugging with Plug'n'Play",
"scope": "window"
}
}
}
],
"commands": [
{
"command": "extension.runJest",
"title": "Run Jest"
},
{
"command": "extension.runJestPath",
"title": "Run Jest on Path"
},
{
"command": "extension.runJestCoverage",
"title": "Run Jest and generate Coverage"
},
{
"command": "extension.runJestAndUpdateSnapshots",
"title": "Run Jest and update Snapshots"
},
{
"command": "extension.runPrevJest",
"title": "Run Jest - Run Previous Test"
},
{
"command": "extension.runJestFile",
"title": "Run Jest on File"
},
{
"command": "extension.debugJest",
"title": "Debug Jest"
},
{
"command": "extension.debugJestPath",
"title": "Debug Jest on Path"
},
{
"command": "extension.runJestFileWithCoverage",
"title": "Run Jest File and generate Coverage"
},
{
"command": "extension.runJestFileWithWatchMode",
"title": "Run Jest File in Watch Mode"
},
{
"command": "extension.watchJest",
"title": "Run Jest --watch"
}
],
"menus": {
"editor/context": [
{
"command": "extension.runJest",
"group": "02_jest"
},
{
"command": "extension.debugJest",
"group": "02_jest"
}
],
"explorer/context": [
{
"command": "extension.runJestPath",
"when": "explorerResourceIsFolder || resourceFilename =~ /.*\\.(spec|test)\\.(js|jsx|ts|tsx)$/",
"group": "02_jest@1"
},
{
"command": "extension.debugJestPath",
"when": "explorerResourceIsFolder || resourceFilename =~ /.*\\.(spec|test)\\.(js|jsx|ts|tsx)$/",
"group": "02_jest@2"
}
]
}
},
"scripts": {
"vscode:prepublish": "webpack --mode production",
"build": "webpack --mode development",
"watch": "webpack --mode development --watch",
"test": "jest .src/test",
"vsce:publish": "vsce publish patch -m '%s [skip ci]' && git push",
"ovsx:publish": "ovsx publish",
"publish": "npm run vsce:publish && npm run ovsx:publish",
"eslint:fix": "eslint --cache --fix",
"prettier": "prettier --write"
},
"devDependencies": {
"@types/jest": "^29.5.5",
"@types/node": "^20.8.6",
"@types/vscode": "^1.83.0",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"jest": "^29.7.0",
"ovsx": "^0.8.3",
"prettier": "^3.0.3",
"ts-jest": "^29.1.1",
"ts-loader": "^9.5.0",
"typescript": "^5.2.2",
"@vscode/vsce": "^2.21.1",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"jest-editor-support": "^31.1.2"
}
}