Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: switch to exodus/test #147

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions features/keychain/module/__tests__/schnorr.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ import ecc from '@exodus/bitcoinerlab-secp256k1'
import { create } from '../crypto/secp256k1.js'
import KeyIdentifier from '@exodus/key-identifier'

import { createHmac, createHash } from 'crypto'

if (!utils.hmacSha256Sync) {
utils.hmacSha256Sync = (k, ...m) =>
createHmac('sha256', k)
.update(utils.concatBytes(...m))
.digest()
}

if (!utils.sha256Sync) {
utils.sha256Sync = (...m) =>
createHash('sha256')
.update(utils.concatBytes(...m))
.digest()
}

const fixtures = [
{
// fixtures created by logging inside toAsyncSigner: https://github.com/ExodusMovement/assets/blob/5f93b19e7537f92519ec9bb7fe2514db9b4507e0/bitcoin/bitcoin-api/src/tx-sign/taproot.js#L48
Expand Down
7 changes: 3 additions & 4 deletions features/keychain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"scripts": {
"lint": "eslint . --ignore-path ../../.gitignore",
"lint:fix": "yarn lint --fix",
"test": "jest",
"todo:reenable:test:integration": "jest --testMatch='**/*.integration-test.js'"
"test": "yarn run -T exodus-test --jest",
"todo:reenable:test:integration": "yarn run -T exodus-test --jest '**/*.integration-test.js'"
},
"dependencies": {
"@exodus/basic-utils": "^2.0.0",
Expand All @@ -50,8 +50,7 @@
"bip39": "2.6.0",
"bn.js": "^5.2.1",
"eslint": "^8.44.0",
"events": "^3.3.0",
"jest": "^29.1.2"
"events": "^3.3.0"
},
"bugs": {
"url": "https://github.com/ExodusMovement/exodus-oss/issues?q=is%3Aissue+is%3Aopen+label%3Akeychain"
Expand Down
4 changes: 2 additions & 2 deletions libraries/key-identifier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"scripts": {
"lint": "yarn run -T eslint . --ignore-path ../../.gitignore",
"lint:fix": "yarn lint --fix",
"test": "yarn run -T jest",
"todo:reenable:test:integration": "jest --testMatch='**/*.integration-test.js'"
"test": "yarn run -T exodus-test --jest",
"todo:reenable:test:integration": "yarn run -T exodus-test --jest '**/*.integration-test.js'"
},
"dependencies": {
"@exodus/key-utils": "^3.6.1",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"@exodus/eslint-plugin-require-extensions": "^0.1.3-exodus.2",
"@exodus/eslint-plugin-restricted-imports": "^1.1.1",
"@exodus/prettier": "^1.0.0",
"@exodus/test": "^1.0.0-rc.56",
"@nrwl/devkit": "^15.8.5",
"@nrwl/workspace": "^15.8.5",
"@types/debug": "^4.1.7",
Expand Down
Loading
Loading