Skip to content

Commit

Permalink
ci: let jest force exit rather than hanging on errors
Browse files Browse the repository at this point in the history
Signed-off-by: Lenin Mehedy <lenin.mehedy@swirldslabs.com>
  • Loading branch information
leninmehedy committed Jan 26, 2024
1 parent 96d8ee0 commit 0a74d51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions fullstack-network-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"fsnetman": "fsnetman.mjs"
},
"scripts": {
"test": "NODE_OPTIONS=--experimental-vm-modules jest --detectOpenHandles --testPathIgnorePatterns=\".*/e2e/.*\"",
"test-e2e": "NODE_OPTIONS=--experimental-vm-modules jest --detectOpenHandles --testPathIgnorePatterns=\\\".*/unit/.*\\\"",
"test": "NODE_OPTIONS=--experimental-vm-modules jest --runInBand --detectOpenHandles --forceExit --testPathIgnorePatterns=\".*/e2e/.*\"",
"test-e2e": "NODE_OPTIONS=--experimental-vm-modules jest --runInBand --detectOpenHandles --forceExit --testPathIgnorePatterns=\\\".*/unit/.*\\\"",
"fsnetman": "NODE_OPTIONS=--experimental-vm-modules node fsnetman.mjs",
"check": "remark . --quiet --frail && eslint .",
"format": "remark . --quiet --frail --output && eslint --fix ."
Expand Down
4 changes: 1 addition & 3 deletions fullstack-network-manager/test/e2e/commands/node.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ describe('NodeCommand', () => {
nodeCmd.logger.showUserError(e)
expect(e).toBeNull()
}
},
60000
)
}, 60000)

it('nodes should be in ACTIVE status', async () => {
const nodeIds = argv.nodeIds.split(',')
Expand Down

0 comments on commit 0a74d51

Please sign in to comment.