jest-mongodb icon indicating copy to clipboard operation
jest-mongodb copied to clipboard

How to use both jest-mongodb and jest-dynamodb

Open moravcik opened this issue 5 years ago • 3 comments

Thank you for great support for testing with MongoDB and DynamoDB with Jest.

In one repo I have multiple services connecting to either MongoDB and DynamoDB, is it possible to combine both presets to use them together?

moravcik avatar Mar 24 '20 14:03 moravcik

Would probably need to create a new jest environment of your own that derives from both.

joeapearson avatar Apr 01 '20 20:04 joeapearson

this feature would be great, actually I have two separate jest environments to execute my tests. Tried to have a jest environment that derives from both but with no success.

thadeuk avatar Dec 20 '20 23:12 thadeuk

An example for this would be great. I have the same scenario: One library with several database adapters

florianbepunkt avatar Feb 17 '22 18:02 florianbepunkt