File tree 6 files changed +130
-6
lines changed
6 files changed +130
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"trailingComma": "es5",
3
3
"semi": false,
4
- "singleQuote": true
4
+ "singleQuote": true,
5
+ "endOfLine": "lf"
5
6
}
Original file line number Diff line number Diff line change 8
8
"cwd" : " ${workspaceFolder}" ,
9
9
"runtimeExecutable" : " ${workspaceFolder}/node_modules/.bin/electron" ,
10
10
"windows" : {
11
+ "preLaunchTask" : " stop chromedriver" ,
12
+ "postDebugTask " : {
13
+ "task" : " stop chromedriver"
14
+ },
11
15
"runtimeExecutable" : " ${workspaceFolder}/node_modules/.bin/electron.cmd"
12
16
},
13
17
"environment" : [
14
18
{ "name" : " ELECTRON_RUN_AS_NODE" , "value" : " " },
15
19
{ "name" : " NODE_DEBUG" , "value" : " api,webdriver" },
16
20
{ "name" : " NODE_OPTIONS" , "value" : " --no-warnings" }
17
21
],
18
- "args" : [" ${workspaceFolder}/dist/main-bundle.js" ],
22
+ "args" : [" --trace-uncaught " , " ${workspaceFolder}/dist/main-bundle.js" ],
19
23
"outputCapture" : " std" ,
20
24
"webRoot" : " ${workspaceFolder}/dist" ,
21
25
"sourceMaps" : true ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : " 2.0.0" ,
3
+ "tasks" : [
4
+ {
5
+ "label" : " stop chromedriver" ,
6
+ "command" : " taskkill" ,
7
+ "type" : " process" ,
8
+ "args" : [
9
+ " /im" ,
10
+ " chromedriver.exe" ,
11
+ " /f" ,
12
+ " /FI" ,
13
+ " STATUS eq RUNNING"
14
+ ],
15
+ "presentation" : {
16
+ "reveal" : " always"
17
+ }
18
+ }
19
+ ]
20
+ }
Original file line number Diff line number Diff line change 55
55
]
56
56
},
57
57
"workspaces" : {
58
- "nohoist" : [" **/electron-chromedriver" ]
58
+ "nohoist" : [
59
+ " **/electron-chromedriver"
60
+ ]
59
61
},
60
62
"dependencies" : {
61
63
"@emotion/react" : " ^11.8.1" ,
70
72
"@seleniumhq/side-recorder-postprocessor" : " ^4.0.0" ,
71
73
"@seleniumhq/side-runtime" : " ^4.0.0" ,
72
74
"electron-context-menu" : " ^3.1.2" ,
75
+ "electron-unhandled" : " ^4.0.1" ,
73
76
"electron-store" : " ^8.0.0" ,
74
77
"fs-extra" : " ^8.1.0" ,
75
78
"lodash" : " 4.17.21" ,
Original file line number Diff line number Diff line change @@ -5,6 +5,18 @@ import createSession from './session'
5
5
import { Session } from './types'
6
6
import { ChildProcess } from 'child_process'
7
7
8
+ // Capture and show unhandled exceptions
9
+ process . on ( 'unhandledRejection' , function handleWarning ( reason ) {
10
+ console . log ( '[PROCESS] Unhandled Promise Rejection' )
11
+ console . log ( '- - - - - - - - - - - - - - - - - - -' )
12
+ console . log ( reason )
13
+ console . log ( '- -' )
14
+ } )
15
+
16
+ process . on ( 'uncaughtException' , ( error ) => {
17
+ console . error ( 'Unhandled Error' , error )
18
+ } )
19
+
8
20
// Enable local debugging
9
21
app . commandLine . appendSwitch ( 'remote-debugging-port' , '8315' )
10
22
@@ -39,9 +51,9 @@ let allWindowsClosed = false
39
51
// after all windows have been closed
40
52
app . on ( 'window-all-closed' , ( ) => {
41
53
allWindowsClosed = true
42
- if ( process . platform !== 'darwin' ) {
43
- app . quit ( )
44
- }
54
+ // if (process.platform !== 'darwin') {
55
+ // app.quit()
56
+ // }
45
57
} )
46
58
47
59
// Getting things in a row so that re-activating an app with no windows
Original file line number Diff line number Diff line change
1
+ {
2
+ "id": "3be0bc0c-e709-450e-82da-2662ab918da7",
3
+ "version": "3.0",
4
+ "name": "New Project",
5
+ "url": "http://www.google.com",
6
+ "urls": [
7
+ "http://www.google.com"
8
+ ],
9
+ "plugins": [],
10
+ "suites": [
11
+ {
12
+ "id": "830394bb-7ddd-47ba-808b-430ff182237d",
13
+ "name": "New Suite",
14
+ "parallel": false,
15
+ "persistSession": false,
16
+ "tests": [
17
+ "4b7fe050-f171-4d55-acc0-82979b3e5614",
18
+ "b393b699-19ca-419e-9fce-c3966711fdab"
19
+ ],
20
+ "timeout": 30000
21
+ },
22
+ {
23
+ "id": "44565e34-48e7-4945-ac71-4ec5d619a562",
24
+ "name": "New Suite",
25
+ "persistSession": false,
26
+ "parallel": false,
27
+ "tests": [],
28
+ "timeout": 30000
29
+ },
30
+ {
31
+ "id": "ff9f21c6-49fc-4c20-97e9-80c612876853",
32
+ "name": "New Suite",
33
+ "persistSession": false,
34
+ "parallel": false,
35
+ "tests": [],
36
+ "timeout": 30000
37
+ }
38
+ ],
39
+ "tests": [
40
+ {
41
+ "id": "4b7fe050-f171-4d55-acc0-82979b3e5614",
42
+ "name": "New Test",
43
+ "commands": [
44
+ {
45
+ "id": "94bf7bac-d2cb-48a5-89c0-b4da7722b6cd",
46
+ "command": "open",
47
+ "target": "/",
48
+ "value": ""
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "id": "b393b699-19ca-419e-9fce-c3966711fdab",
54
+ "name": "New Test",
55
+ "commands": [
56
+ {
57
+ "id": "11a5f709-2c94-4d43-8c00-83a38ccc80ff",
58
+ "command": "open",
59
+ "target": "/",
60
+ "value": ""
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "id": "4a91b433-f36b-4ab7-89fa-d0482bafd568",
66
+ "name": "New Test",
67
+ "commands": [
68
+ {
69
+ "id": "06a71e51-db0a-4fb0-a96e-f418cfb3ec68",
70
+ "command": "open",
71
+ "target": "/",
72
+ "value": ""
73
+ }
74
+ ]
75
+ }
76
+ ],
77
+ "snapshot": {
78
+ "dependencies": {},
79
+ "tests": [],
80
+ "jest": {
81
+ "extraGlobals": []
82
+ }
83
+ }
84
+ }
You can’t perform that action at this time.
0 commit comments