Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing sourcemap warnings #249

Open
1 task done
mbise1993 opened this issue Feb 11, 2025 · 0 comments
Open
1 task done

Missing sourcemap warnings #249

mbise1993 opened this issue Feb 11, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@mbise1993
Copy link

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
@mbise1993 mbise1993 added the bug Something isn't working label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant