@@ -11,15 +11,13 @@ import { promises as fs } from 'fs';
11
11
const execFile = promisify ( childProcess . execFile ) ;
12
12
const exeSuffix = process . platform === 'win32' ? '.exe' : '' ;
13
13
14
- // We shard the tests on Windows because compiling isn't cached there.
15
-
16
14
describe ( 'basic functionality' , ( ) => {
17
15
// Test the currently running Node.js version. Other versions can be checked
18
16
// manually that way, or through the CI matrix.
19
17
const version = process . version . slice ( 1 ) . replace ( / - .* $ / , '' ) ;
20
18
21
19
describe ( `On Node v${ version } ` , function ( ) {
22
- it ( 'works in a simple case (shard 1) ' , async function ( ) {
20
+ it ( 'works in a simple case' , async function ( ) {
23
21
this . timeout ( 2 * 60 * 60 * 1000 ) ; // 2 hours
24
22
await compileJSFileAsBinary ( {
25
23
nodeVersionRange : version ,
@@ -100,7 +98,7 @@ describe('basic functionality', () => {
100
98
}
101
99
} ) ;
102
100
103
- it ( 'works with a Nan addon (shard 2) ' , async function ( ) {
101
+ it ( 'works with a Nan addon' , async function ( ) {
104
102
if ( semver . lt ( version , '12.19.0' ) ) {
105
103
return this . skip ( ) ; // no addon support available
106
104
}
@@ -127,7 +125,7 @@ describe('basic functionality', () => {
127
125
}
128
126
} ) ;
129
127
130
- it ( 'works with a N-API addon (shard 3) ' , async function ( ) {
128
+ it ( 'works with a N-API addon' , async function ( ) {
131
129
if ( semver . lt ( version , '14.13.0' ) ) {
132
130
return this . skip ( ) ; // no N-API addon support available
133
131
}
@@ -154,7 +152,7 @@ describe('basic functionality', () => {
154
152
}
155
153
} ) ;
156
154
157
- it ( 'passes through env vars and runs the pre-compile hook (shard 3) ' , async function ( ) {
155
+ it ( 'passes through env vars and runs the pre-compile hook' , async function ( ) {
158
156
this . timeout ( 2 * 60 * 60 * 1000 ) ; // 2 hours
159
157
let ranPreCompileHook = false ;
160
158
async function preCompileHook ( nodeSourceTree : string ) {
@@ -177,7 +175,7 @@ describe('basic functionality', () => {
177
175
throw new Error ( 'unreachable' ) ;
178
176
} ) ;
179
177
180
- it ( 'works with code caching support (shard 4) ' , async function ( ) {
178
+ it ( 'works with code caching support' , async function ( ) {
181
179
this . timeout ( 2 * 60 * 60 * 1000 ) ; // 2 hours
182
180
await compileJSFileAsBinary ( {
183
181
nodeVersionRange : version ,
@@ -203,10 +201,10 @@ describe('basic functionality', () => {
203
201
}
204
202
} ) ;
205
203
206
- it ( 'works with snapshot support (shard 5) ' , async function ( ) {
204
+ it ( 'works with snapshot support' , async function ( ) {
207
205
this . timeout ( 2 * 60 * 60 * 1000 ) ; // 2 hours
208
206
await compileJSFileAsBinary ( {
209
- nodeVersionRange : 'v20.0.0-nightly202302078e6e215481' , // TODO: Update to real version
207
+ nodeVersionRange : '20.x' ,
210
208
sourceFile : path . resolve ( __dirname , 'resources/snapshot-echo-args.js' ) ,
211
209
targetFile : path . resolve ( __dirname , `resources/snapshot-echo-args${ exeSuffix } ` ) ,
212
210
useNodeSnapshot : true ,
0 commit comments