File tree Expand file tree Collapse file tree 3 files changed +29
-30
lines changed Expand file tree Collapse file tree 3 files changed +29
-30
lines changed Original file line number Diff line number Diff line change @@ -166,17 +166,16 @@ tasks:
166
166
NODE_LTS_VERSION : 22
167
167
- func : install dependencies
168
168
- func : run tests
169
- # TODO(NODE-6662): Fix tests on latest.
170
- # - name: node-tests-latest
171
- # tags: ["node"]
172
- # commands:
173
- # - func: fetch source
174
- # vars:
175
- # NODE_LTS_VERSION: latest
176
- # - func: install dependencies
177
- # - func: run tests
178
- # vars:
179
- # TEST_TARGET: node
169
+ - name : node-tests-latest
170
+ tags : ["node"]
171
+ commands :
172
+ - func : fetch source
173
+ vars :
174
+ NODE_LTS_VERSION : latest
175
+ - func : install dependencies
176
+ - func : run tests
177
+ vars :
178
+ TEST_TARGET : node
180
179
- name : web-tests
181
180
tags : ["web"]
182
181
commands :
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ const nodeOptions = [ 'experimental-vm-modules' ] ;
4
+ const [ major ] = process . versions . node . split ( '.' ) ;
5
+ if ( Number ( major ) >= 23 ) {
6
+ nodeOptions . push ( 'no-experimental-strip-types' ) ;
7
+ }
8
+
9
+ /** @type {import("mocha").MochaOptions } */
10
+ module . exports = {
11
+ require : [ 'source-map-support/register' , 'ts-node/register' ] ,
12
+ extension : [ 'js' , 'ts' ] ,
13
+ recursive : true ,
14
+ timeout : 10000 ,
15
+ failZero : true ,
16
+ sort : true ,
17
+ color : true ,
18
+ 'node-option' : nodeOptions
19
+ } ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments