-
-
Notifications
You must be signed in to change notification settings - Fork 293
test(wallet-cli): add subprocess daemon lifecycle e2e #9306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
44f0146
test(wallet-cli): add subprocess daemon lifecycle e2e
sirtimid 372de87
move e2e tests
sirtimid 0d7edc4
chore: simplify comment
sirtimid 82d2ccc
fix: show logs and report dead daemon as stopped
sirtimid d393d47
lint
sirtimid 393604f
fix closing socket
sirtimid 7c0b7df
fix write log bug
sirtimid 0e84fe6
refactor(wallet-cli): address daemon review feedback
sirtimid 02d713b
test(wallet-cli): key the subprocess e2e suite off the tests/ folder
sirtimid ee51c0b
test(wallet-cli): rename wallet-factory e2e to integration test
sirtimid 02285d4
ci(wallet-cli): align e2e job with test matrix conventions
sirtimid 56d3cf9
chore: remove build step from test:e2e command
sirtimid File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 @@ | ||
| /* | ||
| * Jest configuration for the subprocess e2e suite in `tests/`. | ||
| * | ||
| * Kept separate from `jest.config.js` because these suites spawn the BUILT `mm` | ||
| * CLI and the native `better-sqlite3` addon as real child processes: they must | ||
| * stay out of the fast unit `test` run and must not be held to that run's | ||
| * 100%-coverage gate (subprocess work is invisible to in-process coverage). | ||
| * Run it with `yarn test:e2e`. | ||
| */ | ||
|
|
||
| const merge = require('deepmerge'); | ||
|
|
||
| const baseConfig = require('../../jest.config.packages'); | ||
|
|
||
| module.exports = merge(baseConfig, { | ||
| displayName: 'wallet-cli:e2e', | ||
|
|
||
| // Every test under `tests/` is a subprocess e2e; the default config runs | ||
| // everything in `src/`. | ||
| roots: ['<rootDir>/tests'], | ||
|
|
||
| // Coverage is meaningless here — the work happens in spawned processes — so | ||
| // collecting it would only report the e2e harness as uncovered source. | ||
| collectCoverage: false, | ||
|
|
||
| // The CLI runs in a normal Node process with the Web Crypto globals, so this | ||
| // suite needs neither the `jest.environment.js` polyfill nor any coverage | ||
| // threshold. | ||
| testEnvironment: 'node', | ||
| }); |
This file contains hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.