-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
263 lines (263 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
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
{
"name": "nightwatch",
"displayName": "Nightwatch",
"description": "Write, Run and Debug your Nightwatch tests in VS Code",
"icon": "images/logo.png",
"version": "1.0.1",
"preview": true,
"publisher": "browserstackcom",
"author": {
"name": "Vaibhav Singh",
"email": "[email protected]"
},
"galleryBanner": {
"theme": "dark",
"color": "#24140A"
},
"qna": "https://github.com/nightwatchjs/nightwatch-vscode/issues",
"license": "MIT",
"homepage": "https://nightwatchjs.org/",
"repository": {
"type": "git",
"url": "https://github.com/nightwatchjs/nightwatch-vscode"
},
"bugs": {
"url": "https://github.com/nightwatchjs/nightwatch-vscode/issues"
},
"engines": {
"vscode": "^1.68.0"
},
"categories": [
"Testing"
],
"keywords": [
"nightwatch",
"testing",
"runner",
"report",
"debug",
"run"
],
"activationEvents": [
"workspaceContains:**/nightwatch.conf.js",
"workspaceContains:**/nightwatch.conf.cjs",
"workspaceContains:**/nightwatch.conf.ts",
"workspaceContains:**/nightwatch.json",
"workspaceContains:node_modules/.bin/nightwatch"
],
"main": "./dist/extension.js",
"contributes": {
"menus": {
"commandPalette": [
{
"command": "com.nightwatch.nightwatchExt.install-nightwatch",
"group": "Nightwatch",
"when": "!virtualWorkspace && shellExecutionSupported"
},
{
"command": "com.nightwatch.nightwatchExt.run-test",
"group": "Nightwatch",
"when": "!virtualWorkspace && shellExecutionSupported"
},
{
"command": "com.nightwatch.nightwatchExt.run-all-test",
"group": "Nightwatch",
"when": "!virtualWorkspace && shellExecutionSupported"
},
{
"command": "com.nightwatch.nightwatchExt.debug-test",
"group": "Nightwatch",
"when": "!virtualWorkspace && shellExecutionSupported"
}
]
},
"commands": [
{
"category": "Nightwatch",
"command": "com.nightwatch.nightwatchExt.install-nightwatch",
"title": "%nightwatch.command.nightwatch.installation.title%"
},
{
"category": "Nightwatch",
"command": "com.nightwatch.nightwatchExt.run-test",
"title": "%nightwatch.command.nightwatch.runTest.title%"
},
{
"category": "Nightwatch",
"command": "com.nightwatch.nightwatchExt.run-all-test",
"title": "%nightwatch.command.nightwatch.runAllTest.title%"
},
{
"category": "Nightwatch",
"command": "com.nightwatch.nightwatchExt.debug-test",
"title": "%nightwatch.command.nightwatch.debugTest.title%"
},
{
"category": "Nightwatch",
"command": "com.nightwatch.nightwatchExt.headlessMode",
"title": "%nightwatch.command.nightwatch.headlessMode.title%"
},
{
"category": "Nightwatch",
"command": "com.nightwatch.nightwatchExt.openReport",
"title": "%nightwatch.command.nightwatch.OpenReport.title%"
}
],
"configuration": {
"title": "Nightwatch",
"properties": {
"nightwatch.settings.shell": {
"markdownDescription": "Override the Nightwatch runner process default shell (see node [child_process.spawn()](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options) for more details)",
"type": [
"string",
"null"
],
"default": null,
"scope": "resource"
},
"nightwatch.settings.showTerminalOnLaunch": {
"description": "Automatically open test explorer's terminal upon launch",
"type": "boolean",
"default": true,
"scope": "window"
},
"nightwatch.settings.nightwatchCommandLine": {
"description": "Command line to start Nightwatch tests. This should be the same command line that users run nightwatch tests from a terminal/shell, with the ability to add additional arguments (by extension at runtime)",
"type": "string",
"scope": "resource"
},
"nightwatch.settings.testPath": {
"description": "Set the path to your Nightwatch tests folder",
"type": "string",
"default": "",
"scope": "resource"
},
"nightwatch.settings.nodeEnv": {
"markdownDescription": "Pass environment settings to runner process in addition to `process.env`",
"type": [
"object",
"null"
],
"default": null,
"scope": "resource"
},
"nightwatch.settings.debugMode": {
"description": "Enable debug mode to diagnose extension issues. (see developer console)",
"type": "boolean",
"default": false,
"scope": "resource"
},
"nightwatch.quickSettings.headlessMode": {
"description": "Run Nightwatch tests in headless mode",
"type": "boolean",
"default": false,
"scope": "resource"
},
"nightwatch.quickSettings.openReport": {
"description": "Open report after the test run is complete",
"type": "boolean",
"default": false,
"scope": "resource"
},
"nightwatch.quickSettings.parallels": {
"description": "Specify the number of parallels Nightwatch should use to spawn tests.",
"type": "number",
"default": 0,
"scope": "resource"
},
"nightwatch.quickSettings.environments": {
"description": "Run Nightwatch on this environment",
"type": "string",
"default": "",
"scope": "resource"
}
}
},
"debuggers": [
{
"type": "vscode-nightwatch-tests",
"label": "Debug Nightwatch tests using vscode-nightwatch",
"languages": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"initialConfigurations": [
{
"type": "node",
"name": "Nightwatch Tests",
"request": "launch",
"program": "${workspaceFolder}/node_modules/.bin/nightwatch",
"args": [
"--config",
"nightwatch.conf.js",
"${relativeFile}"
],
"cwd": "${workspaceFolder}",
"skipFiles": [
"<node_internals>/**"
],
"windows": {
"program": "${workspaceFolder}/node_modules/nightwatch/bin/nightwatch"
}
}
]
}
],
"views": {
"test": [
{
"type": "webview",
"id": "com.nightwatch.nightwatchExt.quickSettingPanel",
"name": "Nightwatch Quick Settings"
},
{
"type": "webview",
"id": "com.nightwatch.nightwatchExt.environmentPanel",
"name": "Nightwatch Environments"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prettier": "prettier --write .",
"format": "npm run lint:fix && npm run prettier",
"test": "node ./out/test/runTest.js",
"pretest": "npm run compile-tests && npm run compile && npm run lint"
},
"devDependencies": {
"@types/glob": "^8.0.1",
"@types/mocha": "^10.0.1",
"@types/node": "18.x",
"@types/vscode": "^1.68.0",
"@types/which": "^2.0.2",
"@typescript-eslint/eslint-plugin": "^5.54.0",
"@typescript-eslint/parser": "^5.54.0",
"@vscode/test-electron": "^2.3.0",
"eslint": "^8.35.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"prettier": "^2.8.4",
"ts-loader": "^9.4.2",
"typescript": "4.9.5",
"vscode-nls": "^5.2.0",
"vscode-nls-dev": "^4.0.3",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"jest-editor-support": "^31.0.1",
"json5": "^2.2.3",
"nightwatch": "^2.6.16",
"stacktrace-parser": "^0.1.10",
"tree-kill": "^1.2.2",
"which": "^3.0.0"
}
}