File tree Expand file tree Collapse file tree 5 files changed +26
-17
lines changed Expand file tree Collapse file tree 5 files changed +26
-17
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,16 @@ tasks:
152152 - func : run tests
153153 vars :
154154 TEST_TARGET : node
155+ - name : node-tests-v18
156+ tags : ["node"]
157+ commands :
158+ - func : fetch source
159+ vars :
160+ NODE_MAJOR_VERSION : 18
161+ - func : install dependencies
162+ - func : run tests
163+ vars :
164+ TEST_TARGET : node
155165 - name : browser-tests
156166 tags : ["browser"]
157167 commands :
@@ -168,14 +178,14 @@ tasks:
168178 commands :
169179 - func : fetch source
170180 vars :
171- NODE_MAJOR_VERSION : 16
181+ NODE_MAJOR_VERSION : 18
172182 - func : install dependencies
173183 - func : run checks
174184 - name : check-typescript-oldest
175185 commands :
176186 - func : fetch source
177187 vars :
178- NODE_MAJOR_VERSION : 16
188+ NODE_MAJOR_VERSION : 18
179189 - func : install dependencies
180190 - func : " run typescript"
181191 vars :
@@ -185,7 +195,7 @@ tasks:
185195 commands :
186196 - func : fetch source
187197 vars :
188- NODE_MAJOR_VERSION : 16
198+ NODE_MAJOR_VERSION : 18
189199 - func : install dependencies
190200 - func : " run typescript"
191201 vars :
@@ -195,7 +205,7 @@ tasks:
195205 commands :
196206 - func : fetch source
197207 vars :
198- NODE_MAJOR_VERSION : 16
208+ NODE_MAJOR_VERSION : 18
199209 - func : install dependencies
200210 - func : " run typescript"
201211 vars :
@@ -204,16 +214,16 @@ tasks:
204214
205215buildvariants :
206216 - name : linux
207- display_name : Ubuntu 18 .04
208- run_on : ubuntu1804-test
217+ display_name : Ubuntu 22 .04
218+ run_on : ubuntu2004-small
209219 tasks : [".node", ".browser"]
210220 - name : mac
211221 display_name : MacOS 10.14
212222 run_on : macos-1014
213223 tasks : [".node"]
214224 - name : lint
215225 display_name : lint
216- run_on : rhel70
226+ run_on : ubuntu2004-small
217227 tasks :
218228 - run-checks
219229 - check-typescript-oldest
Original file line number Diff line number Diff line change 3737 "@rollup/plugin-node-resolve" : " ^9.0.0" ,
3838 "@rollup/plugin-replace" : " ^4.0.0" ,
3939 "@rollup/plugin-typescript" : " ^6.0.0" ,
40- "@types/node" : " ^18.0.0 " ,
40+ "@types/node" : " ^18.7.22 " ,
4141 "@typescript-eslint/eslint-plugin" : " ^5.30.0" ,
4242 "@typescript-eslint/parser" : " ^5.30.0" ,
4343 "array-includes" : " ^3.1.3" ,
Original file line number Diff line number Diff line change 11--require ts-node/register
2- --require chai/register-expect
32--require source-map-support/register
43--timeout 10000
Original file line number Diff line number Diff line change 77// and make sure you run mocha using our .mocharc.json or with --require ts-node/register
88
99// This should be done by mocha --require, but that isn't supported until mocha version 7+
10- require ( 'chai/register-expect' ) ;
10+ global . expect = require ( 'chai' ) . expect ;
1111require ( 'array-includes/auto' ) ;
1212require ( 'object.entries/auto' ) ;
1313require ( 'array.prototype.flatmap/auto' ) ;
You can’t perform that action at this time.
0 commit comments