btc-minikeytools
Version:
BTC-MiniKeyTools is a robust tool for working with Bitcoin Mini private keys. It provides validation, key generation, and conversion functionalities, including HEX and Wallet Import Format (WIF) keys. Fully equipped with CLI support and logging options, i
29 lines (23 loc) • 848 B
JavaScript
module.exports = {
// Root directory of your project
rootDir: './',
// Automatically clear mock calls and instances between every test
clearMocks: true,
// Specify the test environment
testEnvironment: 'node',
// Map module aliases for Jest to resolve paths correctly
moduleNameMapper: {
'^/(.*)$': '<rootDir>/core/$1',
'^/(.*)$': '<rootDir>/src/utils/$1',
'^/(.*)$': '<rootDir>/src/classes/$1',
'^/(.*)$': '<rootDir>/config/$1',
'^/(.*)$': '<rootDir>/tests/$1'
},
// Paths to include module-alias registration for tests
setupFiles: ['module-alias/register'],
// Specify test file patterns
testMatch: [
'**/tests/**/*.test.js', // Match all .test.js files in the tests folder
'**/?(*.)+(spec|test).js' // Match *.spec.js and *.test.js files anywhere
]
};