-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(int): add integration tests (#118)
* feat(test): add integration tests * feat(test): add integration tests * feat(test): add integration tests * refactor: move unit tests into src/test/unit dir * refactor: tidy up test runners * feat(int): recreated issue with validateConsentRequests * fix(rules): debugging rules engine issues * feat(int): finish basic integration tests * feat(ci): add integration tests to ci/cd * fix(lint): add jest settings to eslint * fix(ci): fix ci * fix(ci): fix ci
- Loading branch information
Showing
20 changed files
with
2,149 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,3 +71,6 @@ goldenpayeefsp | |
.vscode/ | ||
/init/.DS_Store | ||
/.DS_Store | ||
|
||
|
||
junit.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ exclude: | |
- '**/test-api/**' | ||
- '**/coverage/**' | ||
- '**/.eslintrc.js' | ||
- '**/jest.integration.config.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
version: '3' | ||
services: | ||
redis: | ||
image: "redis:5.0.4-alpine" | ||
sim: | ||
image: "mojaloop-simulator-backend" | ||
build: ../ | ||
env_file: ./sim-backend.env | ||
ports: | ||
- "3000:3000" | ||
- "3001:3001" | ||
- "3003:3003" | ||
depends_on: | ||
- scheme-adapter | ||
scheme-adapter: | ||
image: "mojaloop/sdk-scheme-adapter:latest" | ||
env_file: ./scheme-adapter.env | ||
ports: | ||
- "3500:3000" | ||
- "3501:4000" | ||
depends_on: | ||
- redis | ||
redis: | ||
image: "redis:5.0.4-alpine" | ||
|
||
sim: | ||
image: "mojaloop-simulator-backend" | ||
build: ../ | ||
env_file: ./sim-backend.env | ||
volumes: | ||
- ./rules.json:/src/rules.json | ||
|
||
ports: | ||
- "3000:3000" | ||
- "3001:3001" | ||
- "3003:3003" | ||
depends_on: | ||
- scheme-adapter | ||
|
||
scheme-adapter: | ||
image: "mojaloop/sdk-scheme-adapter:latest" | ||
env_file: ./scheme-adapter.env | ||
ports: | ||
- "3500:3000" | ||
- "3501:4000" | ||
depends_on: | ||
- redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
// roots: ['<rootDir>/', '<rootDir>/test/integration'], | ||
roots: ['<rootDir>/'], | ||
verbose: true, | ||
testEnvironment: 'node', | ||
collectCoverage: false, | ||
clearMocks: true, | ||
reporters: ['jest-junit', 'default'], | ||
}; |
Oops, something went wrong.