-
Notifications
You must be signed in to change notification settings - Fork 704
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c41303e
commit 2f60cb9
Showing
39 changed files
with
1,339 additions
and
516 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/node_modules/@kayahr/jest-electron-runner/lib/main/electron/TestRunner.js b/node_modules/@kayahr/jest-electron-runner/lib/main/electron/TestRunner.js | ||
index 4485862..f34ba6a 100644 | ||
--- a/node_modules/@kayahr/jest-electron-runner/lib/main/electron/TestRunner.js | ||
+++ b/node_modules/@kayahr/jest-electron-runner/lib/main/electron/TestRunner.js | ||
@@ -66,14 +66,19 @@ async function startWorker(rootDir, target, config) { | ||
DISPOSABLES.add(() => { | ||
if (child.pid != null) { | ||
try { | ||
- // Kill whole process group with negative PID (See `man kill`) | ||
- process.kill(-child.pid, "SIGKILL"); | ||
- } | ||
- catch { | ||
- // Ignored | ||
+ if (process.platform === 'win32') { | ||
+ // On Windows, use taskkill instead of process.kill | ||
+ require('child_process').execSync(`taskkill /pid ${child.pid} /T /F`); | ||
+ } else { | ||
+ // Kill whole process group with negative PID (See `man kill`) | ||
+ process.kill(-child.pid, 'SIGKILL'); | ||
+ } | ||
+ } catch (error) { | ||
+ console.error('Failed to kill process:', error); | ||
} | ||
} | ||
- child.kill("SIGKILL"); | ||
+ // Fallback kill (this can remain as it works for most platforms) | ||
+ child.kill('SIGKILL'); | ||
}); | ||
return child; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { Reducer } from 'redux'; | ||
|
||
import type { ActionOf } from '../../store/actions'; | ||
import { APP_MACHINE_THEME_SET } from '../actions'; | ||
|
||
type MachineThemeAction = ActionOf<typeof APP_MACHINE_THEME_SET>; | ||
|
||
export const machineTheme: Reducer<string | null, MachineThemeAction> = ( | ||
state = 'light', | ||
action | ||
) => { | ||
switch (action.type) { | ||
case APP_MACHINE_THEME_SET: { | ||
return action.payload; | ||
} | ||
|
||
default: | ||
return state; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import type { Reducer } from 'redux'; | ||
|
||
import type { ActionOf } from '../../store/actions'; | ||
import { APP_MAIN_WINDOW_TITLE_SET } from '../actions'; | ||
|
||
type MainWindowTitleAction = ActionOf<typeof APP_MAIN_WINDOW_TITLE_SET>; | ||
|
||
export const mainWindowTitle: Reducer<string | null, MainWindowTitleAction> = ( | ||
state = null, | ||
action | ||
) => { | ||
switch (action.type) { | ||
case APP_MAIN_WINDOW_TITLE_SET: | ||
return action.payload; | ||
|
||
default: | ||
return state; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.