jsconfig-paths-jest-mapper
Version:
Use this to load modules whose location is specified in the `paths` section of `jsconfig.json` when using jest.
9 lines (8 loc) • 343 B
JavaScript
const mapper = {
'^\\$components\\/(.*)$': '<rootDir>\\src\\js\\components\\$1',
'^\\$containers\\/(.*)$': '<rootDir>\\src\\js\\containers\\$1',
'^\\$redux\\/(.*)$': '<rootDir>\\src\\js\\redux\\$1',
'^\\$config$': '<rootDir>\\src\\js\\config',
'^\\$config\\/(.*)$': '<rootDir>\\src\\js\\config\\$1'
};
module.exports = { mapper };