mirror of
https://github.com/minibits-cash/minibits_wallet.git
synced 2026-08-09 00:04:56 +00:00
- testMatch now only picks up *.test/*.spec files so the i18n scripts (run via `yarn test:i18n`) are no longer globbed as empty suites - Allowlist react-native-flash-message for transform and map react-native-quick-crypto to a Node crypto shim, unblocking the 11 cashuDleq tests that load it transitively via @scure/bip32 - Remove orphaned storage.test.ts (module + async-storage dep gone) and the boilerplate App.test.tsx smoke test that mounted the full native tree Suite now: 12 suites / 136 tests passing. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
13 lines
461 B
JavaScript
13 lines
461 B
JavaScript
/**
|
|
* Jest manual mock for react-native-quick-crypto.
|
|
*
|
|
* quick-crypto is a drop-in replacement for Node's `crypto`, so under jest
|
|
* (Node environment, no native module) we simply delegate to Node's crypto.
|
|
* This lets dependencies that load it at import time — e.g. @scure/bip32 via
|
|
* @cashu/cashu-ts — be required without the native `QuickCrypto` module.
|
|
*/
|
|
const crypto = require('crypto')
|
|
|
|
module.exports = crypto
|
|
module.exports.default = crypto
|