Skip to content

Error when used in Jest #28

Answered by andreizanik
insuusvenerati asked this question in Q&A
Discussion options

You must be logged in to vote

Hello
I think, you need to fully mock the package. You can write your own logic for storing/setting/getting/removing test cookies in a global object.

https://jestjs.io/docs/manual-mocks#mocking-node-modules

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by insuusvenerati
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants