-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Checklist
- I have read Caveats documentation and didn't find a solution for this problem there.To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
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
marioiliasi, vubogovich, hsattar, conermurphy, nkuik and 3 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Projects
Milestone
Relationships
Development
Select code repository
Activity
fix: add inlineSource to avoid warning when using aws-sdk-client-mock…
vubogovich commentedon Feb 27, 2025
@marioiliasi, thank you for a PR to inline source code. Another option could be to include
src
into npm package.The following post-install script can be used as a temporary workaround (in package.json):
anthonyma94 commentedon Mar 14, 2025
Hi, are you using TypeScript in your code? After I updated to vitest v2, I'm getting a TypeError for any extension methods:
alexbaileyuk commentedon May 10, 2025
Also coming across this today. Would be great to get merged!