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:
152
152
- func : run tests
153
153
vars :
154
154
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
155
165
- name : browser-tests
156
166
tags : ["browser"]
157
167
commands :
@@ -168,14 +178,14 @@ tasks:
168
178
commands :
169
179
- func : fetch source
170
180
vars :
171
- NODE_MAJOR_VERSION : 16
181
+ NODE_MAJOR_VERSION : 18
172
182
- func : install dependencies
173
183
- func : run checks
174
184
- name : check-typescript-oldest
175
185
commands :
176
186
- func : fetch source
177
187
vars :
178
- NODE_MAJOR_VERSION : 16
188
+ NODE_MAJOR_VERSION : 18
179
189
- func : install dependencies
180
190
- func : " run typescript"
181
191
vars :
@@ -185,7 +195,7 @@ tasks:
185
195
commands :
186
196
- func : fetch source
187
197
vars :
188
- NODE_MAJOR_VERSION : 16
198
+ NODE_MAJOR_VERSION : 18
189
199
- func : install dependencies
190
200
- func : " run typescript"
191
201
vars :
@@ -195,7 +205,7 @@ tasks:
195
205
commands :
196
206
- func : fetch source
197
207
vars :
198
- NODE_MAJOR_VERSION : 16
208
+ NODE_MAJOR_VERSION : 18
199
209
- func : install dependencies
200
210
- func : " run typescript"
201
211
vars :
@@ -204,16 +214,16 @@ tasks:
204
214
205
215
buildvariants :
206
216
- name : linux
207
- display_name : Ubuntu 18 .04
208
- run_on : ubuntu1804-test
217
+ display_name : Ubuntu 22 .04
218
+ run_on : ubuntu2004-small
209
219
tasks : [".node", ".browser"]
210
220
- name : mac
211
221
display_name : MacOS 10.14
212
222
run_on : macos-1014
213
223
tasks : [".node"]
214
224
- name : lint
215
225
display_name : lint
216
- run_on : rhel70
226
+ run_on : ubuntu2004-small
217
227
tasks :
218
228
- run-checks
219
229
- check-typescript-oldest
Original file line number Diff line number Diff line change 37
37
"@rollup/plugin-node-resolve" : " ^9.0.0" ,
38
38
"@rollup/plugin-replace" : " ^4.0.0" ,
39
39
"@rollup/plugin-typescript" : " ^6.0.0" ,
40
- "@types/node" : " ^18.0.0 " ,
40
+ "@types/node" : " ^18.7.22 " ,
41
41
"@typescript-eslint/eslint-plugin" : " ^5.30.0" ,
42
42
"@typescript-eslint/parser" : " ^5.30.0" ,
43
43
"array-includes" : " ^3.1.3" ,
Original file line number Diff line number Diff line change 1
1
--require ts-node/register
2
- --require chai/register-expect
3
2
--require source-map-support/register
4
3
--timeout 10000
Original file line number Diff line number Diff line change 7
7
// and make sure you run mocha using our .mocharc.json or with --require ts-node/register
8
8
9
9
// 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 ;
11
11
require ( 'array-includes/auto' ) ;
12
12
require ( 'object.entries/auto' ) ;
13
13
require ( 'array.prototype.flatmap/auto' ) ;
You can’t perform that action at this time.
0 commit comments