Skip to content

Commit b35e0ba

Browse files
committed
ci: react 编译配置
1 parent 5d3d26c commit b35e0ba

File tree

5 files changed

+1888
-16
lines changed

5 files changed

+1888
-16
lines changed

jest.config.cjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ module.exports = {
1313
{
1414
presets: [
1515
['@babel/preset-env', { targets: { node: 'current' } }],
16+
'@babel/preset-react',
1617
'@babel/preset-typescript'
1718
]
1819
}
1920
]
2021
},
21-
transformIgnorePatterns: ['node_modules/(?!(lodash-es))']
22+
transformIgnorePatterns: ['node_modules/(?!(lodash-es))'],
23+
setupFilesAfterEnv: ['@testing-library/jest-dom']
2224
}

0 commit comments

Comments
 (0)