Closed fboucquez closed 1 year ago
Hi team, jest is raising this error when trying to use a lib that depends on libsodium-wrappers
Minimal example:
import _sodium from 'libsodium-wrappers' test('sodium', () => { console.log(_sodium) })
Any hint how to fix it?
import _sodium from 'libsodium-wrappers' test('sodium', async () => { await _sodium.ready console.log(_sodium) })
See https://github.com/jedisct1/libsodium.js#usage-as-a-module
Does this help?
Hi team, jest is raising this error when trying to use a lib that depends on libsodium-wrappers
Minimal example:
Any hint how to fix it?