Skip to content

Commit baa1a74

Browse files
committed
fix: add bootstrap step and a failing test
1 parent 4f3c465 commit baa1a74

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/mongodb-log-writer/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
"test-only": "nyc mocha --colors -r ts-node/register src/**.spec.ts",
5858
"test": "npm run lint && npm run build && npm run test-only",
5959
"test-ci": "npm run test",
60-
"build": "npm run compile-ts && gen-esm-wrapper . ./.esm-wrapper.mjs",
60+
"compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./.esm-wrapper.mjs",
6161
"prepack": "npm run build",
62-
"compile-ts": "tsc -p tsconfig.json"
62+
"bootstrap": "npm run compile"
6363
},
6464
"license": "Apache-2.0",
6565
"dependencies": {

packages/mongodb-log-writer/src/mongo-log-writer.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import sinonChai from 'sinon-chai';
88
chai.use(sinonChai);
99

1010
describe('MongoLogWriter', function () {
11+
it('always fails', function () {
12+
expect.fail('this failed');
13+
});
1114
it('allows writing log messages to a stream', async function () {
1215
const now = new Date(1628591965386);
1316
const target = new stream.PassThrough().setEncoding('utf8');

0 commit comments

Comments
 (0)