|
46 | 46 | "fix:eslint": "yarn test:eslint --fix", |
47 | 47 | "gen:vmb_tests": "yarn build && yarn gen:vmb_tests:bch && yarn gen:vmb_tests-prettier", |
48 | 48 | "gen:vmb_tests-prettier": "prettier 'src/lib/vmb-tests/generated/**/*.json' --write", |
49 | | - "gen:vmb_tests:bch": "node --enable-source-maps 'build/lib/vmb-tests/bch-vmb-tests.spec.helper.js' 'src/lib/vmb-tests/generated/bch' && yarn run gen:vmb_tests:bch:reasons", |
50 | | - "gen:vmb_tests:bch:reasons": "node --enable-source-maps 'build/lib/vmb-tests/bch-vmb-tests-invalid.spec.helper.js'", |
51 | | - "wallet": "node --enable-source-maps 'build/lib/vmb-tests/bch-vmb-tests.live.spec.helper.js'", |
| 49 | + "gen:vmb_tests:bch": "node --enable-source-maps 'build/lib/vmb-tests/write-bch-vmb-tests.spec.helper.js' 'src/lib/vmb-tests/generated' && yarn run gen:vmb_tests:bch:reasons", |
| 50 | + "gen:vmb_tests:bch:reasons": "node --enable-source-maps 'build/lib/vmb-tests/write-reasons-bch-vmb-tests.spec.helper.js'", |
| 51 | + "wallet": "node --enable-source-maps 'build/lib/vmb-tests/run-live-bch-vmb-test.spec.helper.js'", |
52 | 52 | "gen:schema": "yarn gen:schema:wallet-template && yarn gen:schema:bcmr", |
53 | 53 | "gen:schema:wallet-template": "ts-json-schema-generator --no-ref-encode --path 'src/lib/engine/types/template-types.ts' --type 'WalletTemplate' > src/lib/schema/wallet-template.schema.json && prettier 'src/lib/schema/wallet-template.schema.json' --write && ajv compile -s src/lib/schema/wallet-template.schema.json --allowUnionTypes -o src/lib/schema/ajv/validate-wallet-template.js && prettier 'src/lib/schema/ajv/validate-wallet-template.js' --write && node -e \"const fs = require('fs'), path = 'src/lib/schema/ajv/validate-wallet-template.js'; fs.writeFileSync(path, fs.readFileSync(path, 'utf8').replace(/'use strict'[\\s\\S]*module.exports.default =/, 'export default'), 'utf8')\"", |
54 | 54 | "gen:schema:bcmr": "ts-json-schema-generator --no-ref-encode --path 'src/lib/engine/types/bcmr-types.ts' --type 'MetadataRegistry' > src/lib/schema/bcmr.schema.json && prettier 'src/lib/schema/bcmr.schema.json' --write && ajv compile -s src/lib/schema/bcmr.schema.json --allowUnionTypes -o src/lib/schema/ajv/validate-bcmr.js && prettier 'src/lib/schema/ajv/validate-bcmr.js' --write && node -e \"const fs = require('fs'), path = 'src/lib/schema/ajv/validate-bcmr.js'; fs.writeFileSync(path, fs.readFileSync(path, 'utf8').replace(/'use strict'[\\s\\S]*module.exports.default =/, 'export default'), 'utf8')\"", |
|
69 | 69 | "test:fast": "echo '\n\nUsage:\n yarn test:fast src/lib/key/bip39.spec.ts # run a single test file \n yarn test:fast --match=\"!*crypto*\" --match=\"!*vmb_tests*\" # include/exclude tests with names matching pattern(s) \n\n' && ava -v", |
70 | 70 | "test:unit:script_tests": "c8 ava --match='*[script_tests]*' --serial", |
71 | 71 | "test:unit:vmb_tests": "c8 ava src/lib/vmb-tests/bch-vmb-tests.spec.ts --serial", |
72 | | - "test:unit:vmb_test": "node --enable-source-maps 'build/lib/vmb-tests/bch-vmb-test.spec.helper.js'", |
| 72 | + "test:unit:vmb_test": "node --enable-source-maps 'build/lib/vmb-tests/run-bch-vmb-test.spec.helper.js'", |
73 | 73 | "dev:vmb_tests": "yarn gen:vmb_tests && yarn build:tsc && ava src/lib/vmb-tests/bch-vmb-tests.spec.ts --serial --fail-fast", |
74 | | - "bench": "yarn build && yarn bench:browser-deps && yarn bench:test", |
75 | | - "bench:test": "ava --config .ava.bench.config.js --serial --timeout=2m 2>&1 | tee bench.log", |
| 74 | + "bench:vmb_tests": "ava src/lib/vmb-tests/benchmark-bch-vmb-tests.spec.ts --serial", |
| 75 | + "bench": "yarn build && yarn bench:browser-deps && yarn bench:vmb_tests && yarn bench:test", |
| 76 | + "bench:test": "ava --config config/.ava.bench.config.js --serial --timeout=2m 2>&1 | tee bench.log", |
76 | 77 | "bench:browser-deps": "cpy '.yarn/artifacts/*.js' build/bench", |
77 | 78 | "watch": "yarn build -w", |
78 | 79 | "watch:test": "echo '\n\nUsage:\n yarn watch:test src/lib/key/bip39.spec.ts # watch a single test file \n yarn watch:test --match=\"!*crypto*\" --match=\"!*vmb_tests*\" # include/exclude tests with names matching pattern(s) \n\n' && ava -v --watch", |
|
135 | 136 | "rollup": "^4.9.4", |
136 | 137 | "secp256k1": "^5.0.0", |
137 | 138 | "source-map-support": "^0.5.21", |
| 139 | + "tinybench": "^2.8.0", |
138 | 140 | "ts-json-schema-generator": "^1.5.0", |
139 | 141 | "typedoc": "^0.25.7", |
140 | 142 | "typescript": "^5.3.3" |
|
177 | 179 | "overrides": [ |
178 | 180 | { |
179 | 181 | "files": [ |
180 | | - "src/lib/vmb-tests/*bch-vmb-tests*.ts" |
| 182 | + "src/lib/vmb-tests/**/*bch-vmb-tests*.ts" |
181 | 183 | ], |
182 | 184 | "options": { |
183 | 185 | "printWidth": 400 |
|
0 commit comments