refactor: 对齐 MetonaEditor — babel-jest 替代 ts-jest
### Changed - 测试框架: ts-jest → babel-jest (对齐 MetonaEditor 生产方案) - jest.config.cjs: babel-jest transform + moduleNameMapper - test 脚本: jest → jest --coverage (对齐 MetonaEditor) - 移除 ts-jest, 新增 @babel/core/preset-env/preset-typescript/babel-jest ### Added - babel.config.cjs (对齐 MetonaEditor) ### Fixed - 恢复 tslib (@rollup/plugin-typescript 必需依赖) ### Verified - tsc --noEmit: 零错误 - jest --no-coverage: 136/136 passed - rollup build: 5 outputs
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
['@babel/preset-env', { targets: { node: 'current' }, modules: 'commonjs' }],
|
||||
'@babel/preset-typescript',
|
||||
],
|
||||
plugins: [
|
||||
'@babel/plugin-transform-modules-commonjs',
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user