mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-15 18:58:11 +00:00
test: 修复几个单测问题, 支持 aone 实验室
This commit is contained in:
parent
b9c5b3a0fd
commit
67a69ea6cb
@ -8,6 +8,7 @@ dist
|
|||||||
demo
|
demo
|
||||||
es
|
es
|
||||||
lib
|
lib
|
||||||
|
tests
|
||||||
.*
|
.*
|
||||||
~*
|
~*
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
extends: 'eslint-config-ali/typescript/react',
|
extends: 'eslint-config-ali/typescript/react',
|
||||||
ignorePatterns: [ 'tests/** '],
|
|
||||||
rules: {
|
rules: {
|
||||||
'react/no-multi-comp': 0,
|
'react/no-multi-comp': 0,
|
||||||
'no-unused-expressions': 0,
|
'no-unused-expressions': 0,
|
||||||
@ -27,5 +26,7 @@ module.exports = {
|
|||||||
'no-proto': 0,
|
'no-proto': 0,
|
||||||
'prefer-const': 0,
|
'prefer-const': 0,
|
||||||
'eol-last': 0,
|
'eol-last': 0,
|
||||||
|
'react/no-find-dom-node': 0,
|
||||||
|
'no-case-declarations': 0,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
"test:snapshot": "lerna run test:snapshot",
|
"test:snapshot": "lerna run test:snapshot",
|
||||||
"watchdog:build": "node ./scripts/watchdog.js",
|
"watchdog:build": "node ./scripts/watchdog.js",
|
||||||
"xima:fix": "xima fix",
|
"xima:fix": "xima fix",
|
||||||
"xima:scan": "xima scan"
|
"xima:scan": "xima scan --quiet"
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
@ -39,12 +39,9 @@
|
|||||||
"**/*.{js,jsx,ts,tsx}": "xima exec eslint"
|
"**/*.{js,jsx,ts,tsx}": "xima exec eslint"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"ava": "^1.0.1",
|
|
||||||
"@ali/lerna": "^1",
|
"@ali/lerna": "^1",
|
||||||
"ts-node": "^7.0.1",
|
|
||||||
"tslib": "^1.9.3",
|
|
||||||
"typescript": "^3.2.2",
|
"typescript": "^3.2.2",
|
||||||
"xima": "^0.2.15"
|
"xima": "^0.3.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=14.0.0"
|
||||||
|
|||||||
@ -41,6 +41,7 @@
|
|||||||
"build-scripts-config": "^0.1.8",
|
"build-scripts-config": "^0.1.8",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"lodash": "^4.17.20",
|
"lodash": "^4.17.20",
|
||||||
|
"moment": "^2.29.1",
|
||||||
"typescript": "^4.0.3"
|
"typescript": "^4.0.3"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
|
|||||||
@ -929,7 +929,7 @@ export class Node<Schema extends NodeSchema = NodeSchema> {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node.componentMeta?.getMetadata().configure.component?.isModal) {
|
if (node?.componentMeta?.getMetadata().configure.component?.isModal) {
|
||||||
return { container: this.document.rootNode, ref };
|
return { container: this.document.rootNode, ref };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@ exports[`valueToSource 5`] = `
|
|||||||
|
|
||||||
exports[`valueToSource 6`] = `"null"`;
|
exports[`valueToSource 6`] = `"null"`;
|
||||||
|
|
||||||
exports[`valueToSource 7`] = `"function haha() {}"`;
|
exports[`valueToSource 7`] = `"() => {}"`;
|
||||||
|
|
||||||
exports[`valueToSource 8`] = `"new Map()"`;
|
exports[`valueToSource 8`] = `"new Map()"`;
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
eslintType: 'typescript/react',
|
eslintType: 'typescript/react',
|
||||||
|
enableStylelint: false,
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user