babel-plugin-jsx/.jest.js

18 lines
434 B
JavaScript
Raw Normal View History

2020-05-17 16:26:33 +08:00
const path = require('path')
const jsxInjectionPATH = 'PACKAGE/lib/jsxInjection';
const { jsxRender,jsxMergeProps } = require("./lib/jsxInjection");
2020-05-13 19:14:28 +08:00
module.exports = {
2020-05-17 16:26:33 +08:00
moduleNameMapper:{
[jsxInjectionPATH]:path.resolve(__dirname,'./lib/jsxInjection')
},
"transform": {
"^.+\\.[t|j]sx?$": "babel-jest"
2020-05-17 00:02:24 +08:00
},
2020-05-17 16:26:33 +08:00
modulePaths :["<rootDir>/lib/"],
globals: {
_jsxRender:jsxRender,
_jsxMergeProps:jsxMergeProps
}
2020-05-13 19:14:28 +08:00
}