-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
runner.test.js
37 lines (33 loc) · 1.21 KB
/
runner.test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const run = require("./runner");
jest.setTimeout(240000);
describe.skip("index: Integration test", () => {
it("should upload data dir", async () => {
process.env["INPUT_PATH"] = "./data";
process.env["INPUT_SERVICE"] = "ipfs";
process.env["INPUT_HOST"] = "ipfs.infura.io";
process.env["INPUT_PORT"] = 5001;
process.env["INPUT_PROTOCOL"] = "https";
process.env["INPUT_TIMEOUT"] = 60000;
process.env["INPUT_VERBOSE"] = false;
await run();
});
it("should upload real dapp dir", async () => {
process.env["INPUT_PATH"] =
"C:/Users/SergiiBomko/Documents/GitHub/dapps-delivery-guide/build";
process.env["INPUT_SERVICE"] = "ipfs";
process.env["INPUT_HOST"] = "ipfs.infura.io";
process.env["INPUT_PORT"] = 5001;
process.env["INPUT_PROTOCOL"] = "https";
process.env["INPUT_TIMEOUT"] = 120000;
process.env["INPUT_VERBOSE"] = true;
await run();
});
it("[infura] should upload real dapp dir", async () => {
process.env["INPUT_PATH"] =
"C:/Users/SergiiBomko/Documents/GitHub/dapps-delivery-guide/build";
process.env["INPUT_SERVICE"] = "infura";
process.env["INPUT_TIMEOUT"] = 180000;
process.env["INPUT_VERBOSE"] = true;
await run();
});
});