feat: rosetta data api and construction validation with rosetta-cli

* test: added test for rosetta cli check:construction and check:data

* ci: added github workflow to test  roseta-cli:data

* ci: add github action for rosetta-cli: construction

* refactor: refactor cli tests

* fix: use localhoust for github actions in rosetta config file

* fix: github actions

* fix: rebase issue

* refactor: update rosetta-cli env files path

* refactor: remove hard coded cli container and use rosetta-cli ouput

* perf: remove unnecessary wait of 20 seconds
This commit is contained in:
Asim Mehmood
2021-11-16 21:18:04 +05:00
committed by GitHub
parent 285632a983
commit f764054cb8
26 changed files with 975 additions and 404 deletions

View File

@@ -0,0 +1,16 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
rootDir: 'src',
testMatch: ['<rootDir>/tests-rosetta-cli-data/**/*.ts'],
testPathIgnorePatterns: ['<rootDir>/tests-rosetta-cli-data/setup.ts', '<rootDir>/tests-rosetta-cli-data/teardown.ts'],
collectCoverageFrom: ['<rootDir>/**/*.ts'],
coveragePathIgnorePatterns: ['<rootDir>/tests'],
coverageDirectory: '../coverage',
globalSetup: '<rootDir>/tests-rosetta-cli-data/setup.ts',
globalTeardown: '<rootDir>/tests-rosetta-cli-data/teardown.ts',
testTimeout: 240000,
transformIgnorePatterns: [
"node_modules/(?!(@stacks/stacks-transactions)/)"
]
};