Skip to content

Commit

Permalink
feat: misc integration test improvents (#2595)
Browse files Browse the repository at this point in the history
* chore(integration): rm debug log

* feat: build images by default

* fix: testenv/localenv port conflict

* fix: exit process if error in beforeAll, dont run tests

* feat: use run-tests to manage test dep building

* feat: integration package readme

* feat: mock-account-service-lib readme

* fix: use consistent filenames tyle (kebab-case)

* feat(integration): add assertion confirming payment completion

* feat: add cross currency flow and start refactor of tests

refactor changes tests to contain entire flow, instead of seperate
tests for each step of flow, which are not independent.

* Revert "feat: add cross currency flow and start refactor of tests"

This reverts commit 66ede8b.

* fix: pnpm lock, eslint

* feat: add packages to labeler

* fix: apollo type mismatch

* fix: renovate ignoring integration test package

* feat: add get incoming payment step

* fix(integration): readme type, clarify accounting is mock

* Update test/integration/README.md

Co-authored-by: Max Kurapov <max@interledger.org>

* Update test/integration/scripts/run-tests.sh

Co-authored-by: Max Kurapov <max@interledger.org>

* fix(integration): typo

* refactor: attempt to effectively remove ignored path from config

* refactor: test steps into fns and make each flow 1 test (#2608)

* feat: add cross currency flow and start refactor of tests

refactor changes tests to contain entire flow, instead of seperate
tests for each step of flow, which are not independent.

* fix: typo

* refactor: test steps into fns and make each flow 1 test

* feat: add packages to labeler

* fix: apollo type mismatch

* fix: renovate ignoring integration test package

* feat(integration): get public incoming payment test action

* chore: add cross currency amount assertions

* feat(mock-account-servicing-lib): export types

* feat(integration): cross currency assertions

* fix: ts error

* chore: revert temp fix for eslint/node version mismatch

- unpinned eslint to previous version

---------

Co-authored-by: Max Kurapov <max@interledger.org>
  • Loading branch information
BlairCurrey and mkurapov authored Apr 3, 2024
1 parent 021a7fa commit 85703b2
Show file tree
Hide file tree
Showing 24 changed files with 1,151 additions and 711 deletions.
6 changes: 5 additions & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
- changed-files:
- any-glob-to-any-file: 'packages/documentation/**/*'

'pkg: mock-account-service-lib':
- changed-files:
- any-glob-to-any-file: 'packages/mock-account-service-lib/**/*'

'type: ci':
- changed-files:
- any-glob-to-any-file: '.github/**/*'
Expand All @@ -32,7 +36,7 @@

'type: tests':
- changed-files:
- any-glob-to-any-file: 'packages/**/*.test.ts'
- any-glob-to-any-file: ['packages/**/*.test.ts', 'test/**/*']

'type: localenv':
- changed-files:
Expand Down
3 changes: 3 additions & 0 deletions packages/mock-account-service-lib/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Mock Account Service Lib

This is a collection of logic and utilities common to the mock account servicing entities used in our local and test environments.
12 changes: 10 additions & 2 deletions packages/mock-account-service-lib/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
export { Peering, Account, Config, Webhook, WebhookEventType } from './types'
export {
Peering,
Account,
Config,
Webhook,
WebhookEventType,
Fee,
SeedInstance
} from './types'

export { AccountProvider } from './account-provider'
export { setupFromSeed } from './setupFromSeed'
export { setupFromSeed } from './seed'
4 changes: 2 additions & 2 deletions packages/mock-account-service-lib/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ export interface Account {
skipWalletAddressCreation?: boolean
}

interface Fee {
export interface Fee {
fixed: number
basisPoints: number
asset: string
scale: number
}

interface SeedInstance {
export interface SeedInstance {
assets: Array<Asset>
peeringAsset: string
peers: Array<Peering>
Expand Down
Loading

0 comments on commit 85703b2

Please sign in to comment.