GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — lowcode-engine/packages/renderer-core/jest.config.js at main · alittlecodebox/lowcode-engine Expand file tree/ Copy pathjest.config.jsMore file actions 33 lines (30 loc) · 972 Bytes / Copy pathjest.config.jsFile metadata and controls33 lines (30 loc) · 972 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 const fs = require('fs'); const { join } = require('path'); const esModules = ['zen-logger'].join('|'); const pkgNames = fs.readdirSync(join('..')).filter(pkgName => !pkgName.startsWith('.')); const jestConfig = { // transform: { // // '^.+\\.[jt]sx?$': 'babel-jest', // '^.+\\.(ts|tsx)$': 'ts-jest', // // '^.+\\.(js|jsx)$': 'babel-jest', // }, // testMatch: ['(/tests?/.*(test))\\.[jt]s$'], // testMatch: ['**/*/common.test.ts'], transformIgnorePatterns: [ `/node_modules/(?!${esModules})/`, ], setupFiles: [ './tests/fixtures/unhandled-rejection.ts', './tests/setup.ts', ], moduleFileExtensions: ['ts', 'tsx', 'js', 'json'], collectCoverage: true, collectCoverageFrom: [ 'src/**/*.ts', 'src/**/*.tsx', ], }; // 只对本仓库内的 pkg 做 mapping jestConfig.moduleNameMapper = {}; jestConfig.moduleNameMapper[`^@alilc/lowcode\\-(${pkgNames.join('|')})$`] = '<rootDir>/../$1/src'; module.exports = jestConfig; |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |