Skip to content

ENOENT: no such file or directory, open 'node:assert' #245

Open
@manthinaa

Description

@manthinaa

Checklist

  • I have read Caveats documentation and didn't find a solution for this problem there.

Bug description

I am getting following on error on require('aws-sdk-client-mock-jest');:
ENOENT: no such file or directory, open 'node:assert' require('aws-sdk-client-mock-jest'); at Runtime.readFile (node_modules/jest-runtime/build/index.js:1987:21) at Object.<anonymous> (node_modules/aws-sdk-client-mock-jest/src/jestMatchers.ts:2:1) at Object.<anonymous> (node_modules/aws-sdk-client-mock-jest/src/jest.ts:5:1)

I am working nodejs-20.

Could you please provide needful information, thank you.

Reproduction

require('aws-sdk-client-mock-jest');

Environment

  • Node version: v20.18.0
    This was introduced from 4.1.0, in jestMatchers.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions