Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# bedrock-test ChangeLog

## 9.0.0 - 2026-04-xx

### Changed
- **BREAKING**: Use `bedrock.shutdown()` for an orderly exit on success.
- The previous behavior was to abruptly shut down an app, even after testing
success. Now event handlers will be called while app is shutting down:
- `bedrock.stop`
- `bedrock.stopped`
- `bedrock.exit`
- Upgrade dependencies:
- `chai@6`
- `chai-as-promised@8`
- Upgrade dev dependencies:
- `c8@11`

## 8.3.0 - 2026-04-06

### Added
Expand Down
6 changes: 3 additions & 3 deletions lib/test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Copyright 2012 - 2024 Digital Bazaar, Inc.
* Copyright 2012 - 2026 Digital Bazaar, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -17,7 +17,7 @@
*/

import * as bedrock from '@bedrock/core';
import chai from 'chai';
import * as chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import cycle from 'cycle';
import fs from 'node:fs';
Expand Down Expand Up @@ -79,7 +79,7 @@ bedrock.events.on('bedrock.started', async () => {
} else {
console.log('All tests passed.');
logger.info('all tests passed.');
bedrock.exit();
await bedrock.shutdown();
}
} catch(err) {
console.log('Tests exited with error', err);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
},
"homepage": "https://github.com/digitalbazaar/bedrock-test",
"dependencies": {
"chai": "^4.5.0",
"chai-as-promised": "^7.1.2",
"chai": "^6.2.2",
"chai-as-promised": "^8.0.2",
"cycle": "^1.0.3",
"mocha": "^11.7.5"
},
Expand Down
2 changes: 1 addition & 1 deletion test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@bedrock/core": "^6.3.0",
"@bedrock/test": "file:..",
"c8": "^10.1.3",
"c8": "^11.0.0",
"cross-env": "^10.1.0"
},
"c8": {
Expand Down
Loading