mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 00:48:16 +00:00
Merge commit '4ff9ee96d0a6d8658dde5039bd79a9a13e67e830' into def_releases_202203291003099_ali-lowcode_ali-lowcode-engine/1.0.80
This commit is contained in:
commit
5408462555
6
packages/react-simulator-renderer/build.test.json
Normal file
6
packages/react-simulator-renderer/build.test.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"plugins": [
|
||||
"build-plugin-component",
|
||||
"@ali/lowcode-test-mate/plugin/index.ts"
|
||||
]
|
||||
}
|
||||
20
packages/react-simulator-renderer/jest.config.js
Normal file
20
packages/react-simulator-renderer/jest.config.js
Normal file
@ -0,0 +1,20 @@
|
||||
const esModules = ['@recore/obx-react'].join('|');
|
||||
|
||||
module.exports = {
|
||||
// transform: {
|
||||
// '^.+\\.[jt]sx?$': 'babel-jest',
|
||||
// // '^.+\\.(ts|tsx)$': 'ts-jest',
|
||||
// // '^.+\\.(js|jsx)$': 'babel-jest',
|
||||
// },
|
||||
// testMatch: ['(/tests?/.*(test))\\.[jt]s$'],
|
||||
transformIgnorePatterns: [
|
||||
`/node_modules/(?!${esModules})/`,
|
||||
],
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
|
||||
collectCoverage: true,
|
||||
collectCoverageFrom: [
|
||||
'src/**/*.{ts,tsx}',
|
||||
'!**/node_modules/**',
|
||||
'!**/vendor/**',
|
||||
],
|
||||
};
|
||||
@ -10,6 +10,7 @@
|
||||
"lib"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "build-scripts test --config build.test.json",
|
||||
"build": "NODE_OPTIONS=--max_old_space_size=8192 build-scripts build --skip-demo",
|
||||
"cloud-build": "NODE_OPTIONS=--max_old_space_size=8192 build-scripts build --config build.cloud.json"
|
||||
},
|
||||
|
||||
@ -30,7 +30,7 @@ export default function componentRendererFactory() {
|
||||
});
|
||||
this.__render();
|
||||
|
||||
const { noContainer } = this.__parseData(__schema.props);
|
||||
const noContainer = this.__parseData(__schema.props?.noContainer);
|
||||
|
||||
if (noContainer) {
|
||||
return this.__renderContextProvider({ compContext: this });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user