Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
matrix:
node-version:
- 18.x
# - 20.x
- 20.x

steps:
- name: Import secrets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ describe('Tests for default handler', () => {
// act
const fn = builtInServices[req.serviceId][req.fnName];
const res = await fn(req);

// Our test cases above depend on node error message. In node 20 error message for JSON.parse has changed.
// Simple and fast solution for this specific case is to unify both variations into node 18 version error format.
if (res.result === 'Unexpected token \'i\', "incorrect" is not valid JSON') {
res.result = 'Unexpected token i in JSON at position 0';
}

// assert
expect(res).toMatchObject({
Expand Down