Skip to content

Performance in Jest

Dmitry Chestnykh edited this page Dec 4, 2022 · 2 revisions

When using tweetnacl-js in tests with Jest, the extraGlobals configuration variable should include Math. This avoids a significant performance penalty from the test VM environment.

Clone this wiki locally