Skip to content

Move to Node v18 given v16 is officially past its End-of-Life date #120

@r-n-o

Description

@r-n-o

See https://nodejs.org/en/blog/announcements/nodejs16-eol

When running tests with v18 I get a test failure that we'll need to fix:

│     TypeError: mockedFetch.mockReturnValue is not a function
│       22 |   response.json = async () => ({});
│       23 |
│     > 24 |   mockedFetch.mockReturnValue(Promise.resolve(response));
│          |               ^
│       25 |
│       26 |   await TurnkeyApi.getWhoami({
│       27 |     body: {
│       at Object.mockReturnValue (src/__tests__/request-test.ts:24:15)

This is probably a straightforward fix, just jotting this down here while it's fresh!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions