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 install
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 7
7
},
8
8
"scripts" : {
9
9
"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"
11
12
},
12
13
"homepage" : " https://github.com/mongodb-labs/mongosh-snippets" ,
13
14
"repository" : {
16
17
},
17
18
"bugs" : {
18
19
"url" : " https://github.com/mongodb-labs/mongosh-snippets/issues"
20
+ },
21
+ "overrides" : {
22
+ "node-gyp" : " ^11.4.2"
19
23
}
20
24
}
Original file line number Diff line number Diff line change 8
8
"license" : " SSPL" ,
9
9
"publishConfig" : {
10
10
"access" : " public"
11
+ },
12
+ "scripts" : {
13
+ "test" : " mongosh test.js"
14
+ },
15
+ "devDependencies" : {
16
+ "mongosh" : " ^2.5.8"
11
17
}
12
18
}
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