Skip to content

Commit c0f84c5

Browse files
committed
fix: lgtm raised issues
1 parent b1b6637 commit c0f84c5

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

__tests__/integration/poc.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe.skip("proof of concept tests", () => {
3333
it('should make a transaction from genesis address to second wallet', async done => {
3434
// Transfer 1.01 HTR to the second wallet
3535
const transactionAmount = 101;
36-
const transfer = await TestUtils.request
36+
await TestUtils.request
3737
.post('/wallet/simple-send-tx')
3838
.send({
3939
address: WALLET_CONSTANTS.second.addresses[0],

jest-integration.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
module.exports = {
22
clearMocks: true,
3-
coverageDirectory: "coverage",
3+
coverageDirectory: "coverage-integration",
44
testEnvironment: "node",
55
collectCoverage: true,
66
collectCoverageFrom: ["<rootDir>/src/**/*.js"],
77
testMatch: ["<rootDir>/__tests__/integration/**/*.test.js"],
8-
coverageDirectory: "coverage",
98
coverageReporters: ["text-summary", "lcov", "clover"],
109
testTimeout: 20 * 60 * 1000, // 20 minutes seems reasonable for slow integration tests. May be adjusted with optimizations
1110
setupFilesAfterEnv: ["<rootDir>/setupTests-integration.js"],

jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ module.exports = {
55
collectCoverage: true,
66
collectCoverageFrom: ["<rootDir>/src/**/*.js"],
77
testMatch: ["<rootDir>/__tests__/**/*.test.js"],
8-
coverageDirectory: "coverage",
98
coverageReporters: ["text-summary", "lcov", "clover"],
109
testTimeout: 180000,
1110
setupFilesAfterEnv: ["<rootDir>/setupTests.js"],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"test": "jest",
2121
"test_integration": "npm run test_network_up && npm run test_network_integration && npm run test_network_down",
2222
"test_network_up": "docker-compose -f ./__tests__/integration/docker-compose.yml up -d",
23-
"test_network_integration": "jest --config jest-integration.config.js --runInBand",
23+
"test_network_integration": "jest --config jest-integration.config.js --runInBand --forceExit",
2424
"test_network_down": "docker-compose -f ./__tests__/integration/docker-compose.yml down",
2525
"dev": "nodemon --exec babel-node index.js",
2626
"start": "babel-node src/index.js",

0 commit comments

Comments
 (0)