Files
warp/jest.config.js
2021-12-02 12:21:12 +01:00

31 lines
874 B
JavaScript

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': '<rootDir>/src/cache/index',
'@smartweave/contract': '<rootDir>/src/contract/index',
'@smartweave/core': '<rootDir>/src/core/index',
'@smartweave/legacy': '<rootDir>/src/legacy/index',
'@smartweave/plugins': '<rootDir>/src/plugins/index',
'@smartweave/logging': '<rootDir>/src/logging/index',
'@smartweave/utils': '<rootDir>/src/utils/index',
'@smartweave': '<rootDir>/src/index'
},
testPathIgnorePatterns: [
"/.yalc/",
"/data/",
"/_helpers",
],
testEnvironment: 'node',
transform: {
'^.+\\.(ts)$': 'ts-jest'
}
};