mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
36 lines
1.8 KiB
JSON
36 lines
1.8 KiB
JSON
{
|
|
"name": "@trezor/transport-test",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"license": "See LICENSE.md in repo root",
|
|
"sideEffects": false,
|
|
"scripts": {
|
|
"depcheck": "yarn g:depcheck",
|
|
"type-check": "yarn g:tsc --build",
|
|
"test:e2e:bridge": "ts-node -T -O '{\"module\": \"commonjs\", \"esModuleInterop\": true}' ./e2e/bridge/run.ts",
|
|
"test:e2e:old-bridge:hw": "USE_HW=true USE_NODE_BRIDGE=false yarn test:e2e:bridge",
|
|
"test:e2e:old-bridge:emu": "USE_HW=false USE_NODE_BRIDGE=false yarn test:e2e:bridge",
|
|
"test:e2e:new-bridge:hw": "USE_HW=true USE_NODE_BRIDGE=true yarn test:e2e:bridge",
|
|
"test:e2e:new-bridge:emu": "USE_HW=false USE_NODE_BRIDGE=true yarn test:e2e:bridge",
|
|
"build:e2e:api:node": "yarn esbuild ./e2e/api/api.test.ts --bundle --outfile=./e2e/dist/api.test.node.js --platform=node --target=node18 --external:usb",
|
|
"build:e2e:api:browser": "yarn esbuild ./e2e/api/api.test.ts --bundle --outfile=./e2e/dist/api.test.browser.js --platform=browser --external:usb && cp e2e/ui/api.test.html e2e/dist/index.html",
|
|
"test:e2e:api:node:hw": "yarn build:e2e:api:node && node ./e2e/dist/api.test.node.js",
|
|
"test:e2e:api:browser:hw": "yarn build:e2e:api:browser && npx http-serve ./e2e/dist"
|
|
},
|
|
"devDependencies": {
|
|
"@jest/types": "^29.6.3",
|
|
"@trezor/eslint": "workspace:*",
|
|
"@trezor/protobuf": "workspace:*",
|
|
"@trezor/transport": "workspace:*",
|
|
"@trezor/transport-bridge": "workspace:*",
|
|
"@trezor/trezor-user-env-link": "workspace:^",
|
|
"@trezor/utils": "workspace:*",
|
|
"buffer": "^6.0.3",
|
|
"esbuild": "^0.25.2",
|
|
"jest": "29.7.0",
|
|
"jest-extended": "^4.0.2",
|
|
"ts-node": "^10.9.2",
|
|
"usb": "^2.15.0"
|
|
}
|
|
}
|