refactor jest setup to improve unit/integration test executions (#2322)

* fix test:integration command to run tests directly under ./test/integration

* refactor jest setup to have separate config files for integration and unit tests
This commit is contained in:
Omar Khan
2023-05-26 15:16:44 -04:00
committed by GitHub
parent 82c5b3598a
commit 70a9ab0510
6 changed files with 20 additions and 10 deletions

View File

@@ -437,6 +437,7 @@ describe('Connection', function () {
try {
await clientContext.client.connect()
} catch (error) {
// @ts-expect-error -- error.message is expected to be defined
expect(error.message).toEqual(
"Error: connect() timed out after 5000 ms. If your internet connection is working, the rippled server may be blocked or inaccessible. You can also try setting the 'connectionTimeout' option in the Client constructor.",
)