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
I have a monorepo managed by nx. Each package in this repo references the jest config file from repo root directory. I need to use @shelf/jest-dynamodb to support running dynamodb local for test cases. (https://github.com/shelfio/jest-dynamodb)
One of the package is under packages/is-even/jest.config.js like below:
Then in the root create a new file jest-dynamodb-config.ts:
module.exports = {
tables: [],
installerConfig: {
// unrelated but I was using this archive
downloadUrl: 'https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_2023-06-09.tar.gz',
},
options: ['-inMemory'],
port: 8000,
};
This setup also works with the vscode-jest-runner vscode extension out of the box.
I have a monorepo managed by
nx
. Each package in this repo references the jest config file from repo root directory. I need to use@shelf/jest-dynamodb
to support running dynamodb local for test cases. (https://github.com/shelfio/jest-dynamodb)One of the package is under
packages/is-even/jest.config.js
like below:the root level
jest.preset.js
is:when running the test case, the local dynamodb instance is not launched. Is there a way to make it work with monorepo?
The text was updated successfully, but these errors were encountered: