forked from firsttris/vscode-jest-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
218 lines (218 loc) · 6.58 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
{
"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.47",
"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.60.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 ${workFolder} 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.codeLens": {
"type": "array",
"default": [
"run",
"debug"
],
"description": "Enable desired codeLens, possible value : 'run', 'debug', 'watch'. Defaults to ['run', 'debug'] ",
"items": {
"type": "string",
"description": "Either 'run', 'debug' or 'watch'"
},
"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 to workspace root before executing the test",
"scope": "window"
},
"jestrunner.preserveEditorFocus": {
"type": "boolean",
"default": false,
"description": "Preserve focus on editor when running tests",
"scope": "window"
}
}
}
],
"commands": [
{
"command": "extension.runJest",
"title": "Run Jest"
},
{
"command": "extension.runJestPath",
"title": "Run Jest"
},
{
"command": "extension.runJestAndUpdateSnapshots",
"title": "Run Jest and Update Snapshots"
},
{
"command": "extension.runPrevJest",
"title": "Run Previous Jest"
},
{
"command": "extension.runJestFile",
"title": "Run Jest File"
},
{
"command": "extension.debugJest",
"title": "Debug Jest"
},
{
"command": "extension.debugJestPath",
"title": "Debug Jest"
},
{
"command": "extension.runJestFileWithCoverage",
"title": "Run Jest File with Coverage"
},
{
"command": "extension.runJestFileWithWatchMode",
"title": "Run Jest File in Watch Mode"
},
{
"command": "extension.watchJest",
"title": "Watch Jest"
}
],
"menus": {
"editor/context": [
{
"command": "extension.runJest",
"group": "02_jest"
},
{
"command": "extension.debugJest",
"group": "02_jest"
},
{
"command": "extension.watchJest",
"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",
"compile": "webpack --mode development",
"watch": "webpack --mode development --watch",
"test": "npm run test-compile && node ./out/test/runTest.js",
"test-compile": "tsc -p ./",
"publish": "vsce publish patch && git push",
"eslint:fix": "eslint --cache --fix",
"prettier": "prettier --write"
},
"devDependencies": {
"@jest/types": "^27.1.1",
"@types/jest": "^27.0.1",
"@types/node": "^16.9.0",
"@types/vscode": "^1.60.0",
"@typescript-eslint/eslint-plugin": "^4.31.0",
"@typescript-eslint/parser": "^4.31.0",
"babylon": "^6.18.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.1.1",
"prettier": "^2.3.2",
"ts-jest": "^27.0.5",
"ts-loader": "^9.2.5",
"typescript": "^4.4.2",
"vscode-test": "^1.6.1",
"webpack": "^5.52.0",
"webpack-cli": "^4.8.0"
},
"dependencies": {
"jest-editor-support": "^29.0.0"
}
}