UNPKG

templates-mo

Version:

Templates is a scaffolding framework that makes code generation simple, dynamic, and reusable. Generate files, parts of your app, or whole project structures—without the repetitive copy-pasting

31 lines (29 loc) • 808 B
const path = require('path'); // const { pathsToModuleNameMapper } = require('ts-jest'); // const { compilerOptions } = require('./tsconfig.json'); module.exports = { moduleFileExtensions: ['ts', 'js'], transform: { '^.+\\.(ts|js)?$': [ 'ts-jest', { tsconfig: 'tsconfig.jest.json', useESM: true, }, ], }, testMatch: ['!**/lib/**', '**/__tests__/tests/**/*jest.(js|ts)'], testPathIgnorePatterns: [ // TODO: need to fix cli tests '<rootDir>/__tests__/tests/cli/init', ], setupFilesAfterEnv: [ process.env.LEGACY ? './__tests__/setup_legacy.js' : './__tests__/setup.js', ], testEnvironment: 'node', moduleNameMapper: { '^@tps/(.+)$': path.join(__dirname, 'src/$1'), '^@test/(.+)$': path.join(__dirname, '__tests__/$1'), '^templates-mo$': path.join(__dirname), }, };