File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -115,13 +115,15 @@ describe('bson entrypoint', () => {
115
115
} ;
116
116
}
117
117
118
- for ( const test of [
119
- it (
120
- 'browser bundle does not use top-level await' ,
121
- testSyncESMImport ( 'browser' , './lib/bson.mjs' )
122
- ) ,
123
- it ( 'node bundle does not use top-level await' , testSyncESMImport ( 'node' , './lib/bson.node.mjs' ) )
124
- ] ) {
125
- if ( NODE_MAJOR < 22 ) test . skip ( ) ;
126
- }
118
+ const itFn = NODE_MAJOR < 22 ? it . skip : it ;
119
+
120
+ itFn (
121
+ 'browser bundle does not use top-level await' ,
122
+ testSyncESMImport ( 'browser' , './lib/bson.mjs' )
123
+ ) ;
124
+
125
+ itFn (
126
+ 'node bundle does not use top-level await' ,
127
+ testSyncESMImport ( 'node' , './lib/bson.node.mjs' )
128
+ ) ;
127
129
} ) ;
Original file line number Diff line number Diff line change @@ -11,14 +11,16 @@ const REQUIRED_FILES = [
11
11
'README.md' ,
12
12
'bson.d.ts' ,
13
13
'etc/prepare.js' ,
14
- 'lib/bson.bundle.js' ,
15
14
'lib/bson.bundle.js.map' ,
16
- 'lib/bson.cjs ' ,
15
+ 'lib/bson.bundle.js ' ,
17
16
'lib/bson.cjs.map' ,
18
- 'lib/bson.mjs ' ,
17
+ 'lib/bson.cjs ' ,
19
18
'lib/bson.mjs.map' ,
20
- 'lib/bson.rn.cjs' ,
19
+ 'lib/bson.mjs' ,
20
+ 'lib/bson.node.mjs.map' ,
21
+ 'lib/bson.node.mjs' ,
21
22
'lib/bson.rn.cjs.map' ,
23
+ 'lib/bson.rn.cjs' ,
22
24
'package.json' ,
23
25
'src/binary.ts' ,
24
26
'src/bson_value.ts' ,
You can’t perform that action at this time.
0 commit comments