Skip to content

Commit bb6090a

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

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

.github/workflows/check-test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
permissions:
1515
contents: read # we just need to checkout the repo
1616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
1721
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1822
jobs:
1923
check-and-test:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"reformat-changed": "lerna run reformat --stream --no-bail --since origin/HEAD --exclude-dependents",
3838
"reformat": "lerna run reformat --stream --no-bail",
3939
"test-changed": "lerna run test --stream --concurrency 1 --since origin/HEAD",
40-
"test-ci": "lerna run test-ci --concurrency 1 --sort",
40+
"test-ci": "lerna run test-ci --concurrency 1 --sort --bail",
4141
"test": "lerna run test --concurrency 1 --stream",
4242
"where": "node ./scripts/src/where.js"
4343
},

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)