-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: run electron runner tests on GH actions (#1373)
Co-authored-by: Joe Haines <[email protected]>
- Loading branch information
1 parent
949b242
commit c109a1b
Showing
6 changed files
with
38 additions
and
19 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
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 @@ | ||
module.exports = { | ||
projects: [ | ||
{ | ||
setupFilesAfterEnv: ['<rootDir>/test/electron/setup.ts'], | ||
clearMocks: true, | ||
modulePathIgnorePatterns: ['.verdaccio', 'fixtures', 'examples'], | ||
displayName: 'electron main', | ||
runner: '@jest-runner/electron/main', | ||
testMatch: ['**/test/**/*.test-main.ts'] | ||
}, | ||
{ | ||
setupFilesAfterEnv: ['<rootDir>/test/electron/setup.ts'], | ||
clearMocks: true, | ||
modulePathIgnorePatterns: ['.verdaccio', 'fixtures', 'examples'], | ||
displayName: 'electron renderer', | ||
runner: '@jest-runner/electron', | ||
testMatch: ['**/test/**/*.test-renderer.ts'] | ||
} | ||
] | ||
} |
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,7 @@ | ||
// Run default and electron runner tests as a single suite | ||
const { projects } = require('./electron-jest.config') | ||
const config = require('../jest.config') | ||
|
||
config.projects.push(...projects) | ||
|
||
module.exports = config |
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