Skip to content

Configuring expect.closeTo.precision for an entire project. Is it possible? #6821

Answered by hi-ogawa
heysokam asked this question in Q&A
Discussion options

You must be logged in to vote

Currently it's not possible and precision = 2 is hard-coded in many places. Probably going with own matcher like expect.myCloseTo(x) with a different value is not that bad.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@heysokam
Comment options

Answer selected by heysokam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants