module.exports = { // Automatically clear mock calls and instances between every test clearMocks: true, moduleFileExtensions: ['ts', 'js'], // A map from regular expressions to module names that allow to stub out resources with a single module moduleNameMapper: { '@smartweave/cache': '/src/cache/index', '@smartweave/contract': '/src/contract/index', '@smartweave/core': '/src/core/index', '@smartweave/legacy': '/src/legacy/index', '@smartweave/plugins': '/src/plugins/index', '@smartweave/logging': '/src/logging/index', '@smartweave/utils': '/src/utils/index', '@smartweave': '/src/index' }, testPathIgnorePatterns: [ "/.yalc/", "/data/" ], testEnvironment: 'node', transform: { '^.+\\.(ts)$': 'ts-jest' } };