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

Cannot read property listTables #107

Open
jrobens opened this issue Aug 21, 2021 · 1 comment
Open

Cannot read property listTables #107

jrobens opened this issue Aug 21, 2021 · 1 comment

Comments

@jrobens
Copy link

jrobens commented Aug 21, 2021

I've installed specific packages in aws-sdk version 3.

"@aws-sdk/client-dynamodb": "^3.20.0",

When I install jest-dynamodb it says it is missing listTables

TypeError: Jest: Got error running globalTeardown - /Users/jrobens/NetBeansProjects/azuron/winpay-uploader/node_modules/@shelf/jest-dynamodb/teardown.js, reason: Cannot read property 'listTables' of undefined at module.exports (/Users/jrobens/NetBeansProjects/azuron/winpay-uploader/node_modules/@shelf/jest-dynamodb/teardown.js:16:53) at /Users/jrobens/NetBeansProjects/azuron/winpay-uploader/node_modules/@jest/core/build/runGlobalHook.js:135:19 at ScriptTransformer.requireAndTranspileModule (/Users/jrobens/NetBeansProjects/azuron/winpay-uploader/node_modules/@jest/transform/build/ScriptTransformer.js:895:24) at /Users/jrobens/NetBeansProjects/azuron/winpay-uploader/node_modules/@jest/core/build/runGlobalHook.js:126:9 at pEachSeries (/Users/jrobens/NetBeansProjects/azuron/winpay-uploader/node_modules/p-each-series/index.js:8:23) at _default (/Users/jrobens/NetBeansProjects/azuron/winpay-uploader/node_modules/@jest/core/build/runGlobalHook.js:110:5) at runJest (/Users/jrobens/NetBeansProjects/azuron/winpay-uploader/node_modules/@jest/core/build/runJest.js:391:5) at _run10000 (/Users/jrobens/NetBeansProjects/azuron/winpay-uploader/node_modules/@jest/core/build/cli/index.js:408:7) at runCLI (/Users/jrobens/NetBeansProjects/azuron/winpay-uploader/node_modules/@jest/core/build/cli/index.js:261:3) at Object.run (/Users/jrobens/NetBeansProjects/azuron/winpay-uploader/node_modules/jest-cli/build/cli/index.js:163:37) run index.js:170 Async call from async function run index.js:163

@vladholubiev
Copy link
Member

Looks like global.__DYNAMODB_CLIENT__ variable is undefined for you for some reason. Do you have some customer jest setup file that might interfere with declaring global.__DYNAMODB_CLIENT__?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants