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

@@ -0,0 +1,13 @@
// Jest configuration for api
const base = require('../../jest.config.base.js')
module.exports = {
...base,
roots: [...base.roots, '<rootDir>/test'],
testMatch: ['<rootDir>/test/**/*.test.ts'],
testPathIgnorePatterns: [
'<rootDir>/test/integration',
'<rootDir>/test/fixtures',
],
displayName: 'xrpl.js',
}