aboutsummaryrefslogtreecommitdiffstats
path: root/packages/testnet-faucets
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-02-06 08:31:51 +0800
committerJacob Evans <jacob@dekz.net>2018-02-06 08:32:43 +0800
commit4e284f5e6cbe48b307f3d3163dd7f158c56a5e82 (patch)
tree143e37b33d26b4fbd0ad718c7e7a3f025fc58987 /packages/testnet-faucets
parentfc3058c1e2fdf9a11eedd3d4c775d54fbf61b6c9 (diff)
downloaddexon-0x-contracts-4e284f5e6cbe48b307f3d3163dd7f158c56a5e82.tar
dexon-0x-contracts-4e284f5e6cbe48b307f3d3163dd7f158c56a5e82.tar.gz
dexon-0x-contracts-4e284f5e6cbe48b307f3d3163dd7f158c56a5e82.tar.bz2
dexon-0x-contracts-4e284f5e6cbe48b307f3d3163dd7f158c56a5e82.tar.lz
dexon-0x-contracts-4e284f5e6cbe48b307f3d3163dd7f158c56a5e82.tar.xz
dexon-0x-contracts-4e284f5e6cbe48b307f3d3163dd7f158c56a5e82.tar.zst
dexon-0x-contracts-4e284f5e6cbe48b307f3d3163dd7f158c56a5e82.zip
Refactor tests for reuse of the fixture subprovider
Diffstat (limited to 'packages/testnet-faucets')
-rw-r--r--packages/testnet-faucets/Dockerfile3
-rw-r--r--packages/testnet-faucets/src/ts/global.d.ts9
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