diff options
author | Jacob Evans <jacob@dekz.net> | 2018-02-06 08:31:51 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-02-06 08:32:43 +0800 |
commit | 4e284f5e6cbe48b307f3d3163dd7f158c56a5e82 (patch) | |
tree | 143e37b33d26b4fbd0ad718c7e7a3f025fc58987 /packages/testnet-faucets | |
parent | fc3058c1e2fdf9a11eedd3d4c775d54fbf61b6c9 (diff) | |
download | dexon-sol-tools-4e284f5e6cbe48b307f3d3163dd7f158c56a5e82.tar.gz dexon-sol-tools-4e284f5e6cbe48b307f3d3163dd7f158c56a5e82.tar.zst dexon-sol-tools-4e284f5e6cbe48b307f3d3163dd7f158c56a5e82.zip |
Refactor tests for reuse of the fixture subprovider
Diffstat (limited to 'packages/testnet-faucets')
-rw-r--r-- | packages/testnet-faucets/Dockerfile | 3 | ||||
-rw-r--r-- | packages/testnet-faucets/src/ts/global.d.ts | 9 |
2 files changed, 7 insertions, 5 deletions
diff --git a/packages/testnet-faucets/Dockerfile b/packages/testnet-faucets/Dockerfile index 346f461d8..bd1dcc4a4 100644 --- a/packages/testnet-faucets/Dockerfile +++ b/packages/testnet-faucets/Dockerfile @@ -2,7 +2,10 @@ FROM node WORKDIR /src +# Ledger Provider (in the Subproviders package) requires node-hid at dependency install time +# which compiles and expects certain USB developer library packages to be present RUN apt-get -qq update && apt-get install -y libhidapi-dev libusb-1.0-0-dev +# Our fork of ledgerco disables requiring node-hid at run time if CIRCLECI is set to true ENV CIRCLECI=true COPY package.json . RUN npm i diff --git a/packages/testnet-faucets/src/ts/global.d.ts b/packages/testnet-faucets/src/ts/global.d.ts index b9188bbf6..3d9998698 100644 --- a/packages/testnet-faucets/src/ts/global.d.ts +++ b/packages/testnet-faucets/src/ts/global.d.ts @@ -1,4 +1,7 @@ declare module 'rollbar'; +declare module 'web3-provider-engine/subproviders/rpc'; +declare module 'web3-provider-engine/subproviders/nonce-tracker'; +declare module 'web3-provider-engine/subproviders/hooked-wallet'; declare module '*.json' { const json: any; @@ -33,8 +36,4 @@ declare module 'web3-provider-engine' { } export = Web3ProviderEngine; } -/* tslint:enable */ - -declare module 'web3-provider-engine/subproviders/rpc'; -declare module 'web3-provider-engine/subproviders/nonce-tracker'; -declare module 'web3-provider-engine/subproviders/hooked-wallet'; +/* tslint:enable */
\ No newline at end of file |