mirror of
https://github.com/alexgo-io/stacks.js.git
synced 2026-01-12 22:52:34 +08:00
BREAKING CHANGE: Remove the getBTCAddress method, since it does not work with modern BTC addresses. A StackingClient will now automatically detect which PoX version to use for Stacking. Adds the following PoX Stacking methods to the StackingClient: `stackExtend`, `stackIncrease`, `delegateStackExtend`, `delegateStackIncrease`, `stackAggregationCommitIndexed`, `stackAggregationIncrease`. Adds the following helper methods to the StackingClient: `getAccountExtendedBalances`, `getAccountBalanceLocked`, `getDelegationStatus`, `getRewardSet`.
31 lines
772 B
JavaScript
31 lines
772 B
JavaScript
const path = require('path');
|
|
|
|
if (process.env.SKIP_TESTS) {
|
|
console.log('Skipping tests...');
|
|
process.exit(0);
|
|
}
|
|
|
|
module.exports = packageDirname => {
|
|
return {
|
|
rootDir: packageDirname,
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
coverageDirectory: './coverage/',
|
|
collectCoverage: true,
|
|
moduleNameMapper: require('jest-module-name-mapper').default(
|
|
path.resolve(packageDirname, 'tsconfig.json')
|
|
),
|
|
globals: {
|
|
'ts-jest': {
|
|
tsconfig: path.resolve(packageDirname, 'tsconfig.json'),
|
|
diagnostics: {
|
|
ignoreCodes: ['TS151001'],
|
|
},
|
|
},
|
|
},
|
|
moduleFileExtensions: ['js', 'ts', 'd.ts'],
|
|
setupFilesAfterEnv: [path.resolve(__dirname, 'jestSetup.js')],
|
|
testTimeout: 10_000,
|
|
};
|
|
};
|