You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x ] I have read Caveats documentation and didn't find a solution for this problem there.
Bug description
Since the 0.6.0 version I am getting syntax errors when trying to use the import { mockClient } from 'aws-sdk-client-mock' syntax.
SyntaxError: The requested module 'aws-sdk-client-mock' does not provide an export named 'mockClient'
at Runtime.linkAndEvaluateModule (node_modules/jest-runtime/build/index.js:779:5)
at TestScheduler.scheduleTests (node_modules/@jest/core/build/TestScheduler.js:333:13)
at runJest (node_modules/@jest/core/build/runJest.js:404:19)
at _run10000 (node_modules/@jest/core/build/cli/index.js:320:7)
Environment
Node version: 17.3.0
Testing lib and version: Jest 27.5.1
Typescript version: /
AWS SDK v3 Client mock version: 0.6.0
AWS JS SDK libs and versions:
@aws-sdk/client-rds-data v3.53.0
Minimal example
Running npm run test with the following minimal sample generates the syntax error under v0.6.0 of the library, but runs fine under v0.5.6
I bumped TypeScript to 4.5.5 in the previous release, and apparently, this caused the problem. I bumped TS to 4.6.2 and it seems to work. I will release v0.6.1 in a moment.
Checklist
Bug description
Since the 0.6.0 version I am getting syntax errors when trying to use the
import { mockClient } from 'aws-sdk-client-mock'
syntax.Environment
Minimal example
Running
npm run test
with the following minimal sample generates the syntax error under v0.6.0 of the library, but runs fine under v0.5.6package.json
index.test.mjs
The text was updated successfully, but these errors were encountered: