File tree Expand file tree Collapse file tree 4 files changed +55
-1
lines changed Expand file tree Collapse file tree 4 files changed +55
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ pull_request :
5+
6+ workflow_dispatch :
7+ push :
8+ branches :
9+ - main
10+
11+ permissions :
12+ contents : read # we just need to checkout the repo
13+
14+ jobs :
15+ check-and-test :
16+ name : Check and Test
17+
18+ timeout-minutes : 45
19+
20+ strategy :
21+ matrix :
22+ os : [ubuntu-latest]
23+ fail-fast : false
24+
25+ runs-on : ${{ matrix.os }}
26+
27+ steps :
28+ - name : Setup Node.js
29+ uses : actions/setup-node@v4
30+ with :
31+ node-version : 24.x
32+
33+ - name : Install Dependencies
34+ run : |
35+ npm ci
36+ npx lerna bootstrap
37+ shell : bash
38+
39+ - name : Run Tests
40+ run : npm run test -- --stream
41+ shell : bash
Original file line number Diff line number Diff line change 77 },
88 "scripts" : {
99 "make-index" : " node scripts/make-index" ,
10- "show-index" : " node scripts/show-index"
10+ "show-index" : " node scripts/show-index" ,
11+ "test" : " lerna run test"
1112 },
1213 "homepage" : " https://github.com/mongodb-labs/mongosh-snippets" ,
1314 "repository" : {
1617 },
1718 "bugs" : {
1819 "url" : " https://github.com/mongodb-labs/mongosh-snippets/issues"
20+ },
21+ "overrides" : {
22+ "node-gyp" : " ^11.4.2"
1923 }
2024}
Original file line number Diff line number Diff line change 88 "license" : " SSPL" ,
99 "publishConfig" : {
1010 "access" : " public"
11+ },
12+ "scripts" : {
13+ "test" : " mongosh test.js"
14+ },
15+ "devDependencies" : {
16+ "mongosh" : " ^2.5.8"
1117 }
1218}
Original file line number Diff line number Diff line change 1+ load ( __dirname + '/index.js' ) ;
2+
3+ assert . strictEqual ( ObjectId ( '0123456789abcdef01234567' ) . tojson ( ) , 'ObjectId("0123456789abcdef01234567")' ) ;
You can’t perform that action at this time.
0 commit comments