chore: coverage 执行换成 v8 解决内存问题 (#5679)

This commit is contained in:
吴多益 2022-11-02 18:39:08 +08:00 committed by GitHub
parent e609df9e44
commit a1fdec0748
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -16,7 +16,7 @@
"test": "npm test --workspaces",
"update-snapshot": "npm run update-snapshot --workspaces",
"prepare": "husky install",
"coverage": "jest --coverage --coverage-provider=v8",
"coverage": "jest --coverage --collectCoverage=v8",
"version": "lerna version",
"release": "npm run build --workspaces && lerna publish from-package --registry=https://registry.npmjs.org --ignore-scripts",
"revision": "ts-node ./scripts/generate-revision.ts",

View File

@ -8,7 +8,7 @@ import {
SchemaClassName,
SchemaObject
} from '../../Schema';
import Form, {FormHorizontal} from 'amis-core';
import {FormHorizontal} from 'amis-core';
export type GroupSubControl = SchemaObject & {
/**
@ -173,9 +173,10 @@ export class ControlGroupRenderer extends React.Component<InputGroupProps> {
const controlMode = (control as FormBaseControl)?.mode || formMode;
if (
controlMode === 'inline'
controlMode === 'inline' ||
// hidden 直接渲染,否则会有个空 Form-groupColumn 层
|| control?.type && ['formula', 'hidden'].includes((control as any).type)
(control?.type &&
['formula', 'hidden'].includes((control as any).type))
) {
return this.renderControl(control, index, {
key: index,