Skip to content

Commit 1c5f17f

Browse files
committed
[INTERNAL] Fix unit/coverage setup on Node 20 and adapt CI matrix
AVA's nodeArguments option doesn't seem to work with loaders on Node 20. One solution is to disable worker threads to use child processes instead. This should also stabilize test execution, especially when tests also spawn new worker threads, which mainly appeared in ui5-builder. See: SAP/ui5-server#602 JIRA: CPOUI5FOUNDATION-612
1 parent 3713c4c commit 1c5f17f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ strategy:
2626
node_version: 18.x
2727
linux_node_current:
2828
imageName: 'ubuntu-22.04'
29-
node_version: 19.x
29+
node_version: 20.x
3030
mac_node_current:
3131
imageName: 'macos-12'
32-
node_version: 19.x
32+
node_version: 20.x
3333
windows_node_current:
3434
imageName: 'windows-2022'
35-
node_version: 19.x
35+
node_version: 20.x
3636

3737
pool:
3838
vmImage: $(imageName)

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@
7272
"nodeArguments": [
7373
"--loader=esmock",
7474
"--no-warnings"
75-
]
75+
],
76+
"workerThreads": false
7677
},
7778
"nyc": {
7879
"reporter": [

0 commit comments

Comments
 (0)