Skip to content

Missing sourcemap warnings #249

@mbise1993

Description

@mbise1993

Checklist

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

Bug description

Minor issue here - there are some missing sourcemap warnings logged to the console at the start of our test runs:

Sourcemap for "/Users/<user>/<repo>/node_modules/aws-sdk-client-mock-jest/dist/es/jest.js" points to missing source files
Sourcemap for "/Users/<user>/<repo>/node_modules/aws-sdk-client-mock-jest/dist/es/jestMatchers.js" points to missing source files
Sourcemap for "/Users/<user>/<repo>/node_modules/aws-sdk-client-mock-jest/dist/es/vitest.js" points to missing source files

It looks like the sourcemaps are being shipped with the package but they are pointing to source TypeScript files that don't get shipped.

Reproduction

Run any tests that use this library with Vitest (might work with Jest too, but I'm not sure if it logs sourcemap warnings)

Environment

  • Node version: 20.17.0
  • Testing lib and version: Vitest - 3.0.5
  • Typescript version: 5.6.2
  • AWS SDK v3 Client mock version: 4.1.0
  • AWS JS SDK libs and versions:
    • @aws-sdk/client-acm: 3.651.1
    • @aws-sdk/client-cloudwatch: 3.651.1
    • @aws-sdk/client-ecs: 3.651.1
    • @aws-sdk/credential-providers: 3.651.1

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