Skip to content

test: Separate faucet tests from local integration tests #2985

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions packages/xrpl/jest.config.faucet.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Jest configuration for faucet tests
const base = require('../../jest.config.base.js')

module.exports = {
...base,
roots: [...base.roots, '<rootDir>/test'],
testTimeout: 60000, // Longer timeout for faucet tests
testMatch: [
'<rootDir>/test/faucet/**/*.test.ts',
'<rootDir>/test/faucet/*.test.ts',
],
displayName: 'xrpl.js-faucet',
}
3 changes: 2 additions & 1 deletion packages/xrpl/jest.config.integration.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest configuration for api
// Jest configuration for integration tests (local rippled only)
const base = require('../../jest.config.base.js')

module.exports = {
Expand All @@ -9,5 +9,6 @@ module.exports = {
'<rootDir>/test/integration/**/*.test.ts',
'<rootDir>/test/integration/*.test.ts',
],
testPathIgnorePatterns: ['<rootDir>/test/faucet/'],
displayName: 'xrpl.js',
}
2 changes: 2 additions & 0 deletions packages/xrpl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
"prepublish": "run-s clean build",
"test": "jest --config=jest.config.unit.js --verbose false --silent=false",
"test:integration": "TS_NODE_PROJECT=tsconfig.build.json jest --config=jest.config.integration.js --verbose false --silent=false --runInBand",
"test:faucet": "TS_NODE_PROJECT=tsconfig.build.json jest --config=jest.config.faucet.js --verbose false --silent=false --runInBand",
"test:all": "run-s test test:integration test:faucet",
"test:browser": "npm run build && npm run build:browserTests && karma start ./karma.config.js",
"test:watch": "jest --watch --verbose false --silent=false --runInBand ./test/**/*.test.ts --testPathIgnorePatterns=./test/integration --testPathIgnorePatterns=./test/fixtures",
"format": "prettier --write '{src,test}/**/*.ts'",
Expand Down