How do we provide jest config file to serverless bundle?
Hello All, We are using Lerna Yarn workspaces for our project and having a root jest.config.base.js file which extends its properties to the jest.config.js in workspaces. The following is our directory structure for reference.
- node_modules
- workspaces
- workspace1
- src
- serverless.ts
- handler.ts
- package.json
- jest.config.js
- workspace2
- src
- serverless.ts
- handler.ts
- package.json
- jest.config.js
- lerna.json
- package.json
- tsconfig.json
- jest.config.base.js
- yarn.lock
We want to include some configurations while running our jest test cases. Therefore, we are looking to provide the jest configurations to serverless-bundle via jest.config.base.js. Please let me know if I can provide the configuration file like this? or is there any other way to perform this?
P.S: Let me know if you need any other details
Facing the same problem, can anyone help to figure out a way for the same?
AFAIK, we don't do anything specific to support a jest config. Were you doing this without Yarn workspaces?
Same issue. Running serverless-bundle test command and it doesn't take jest.config.js configuration into account.
Same issue here. Someone found a solution ?
I am also having this issue. Please add this support in the feature!