mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-17 04:22:28 +00:00
fix: 解决同名 slot 在替换时没有正常回收节点 fix: findDOMNode 增强 chore: 在 build-plugins start 时开启 inline-source-map
30 lines
800 B
TypeScript
30 lines
800 B
TypeScript
import set from 'lodash/set';
|
|
import cloneDeep from 'lodash/cloneDeep';
|
|
import '../fixtures/window';
|
|
import { Node } from '../../src/document/node/node';
|
|
import { Designer } from '../../src/designer/designer';
|
|
import divMeta from '../fixtures/component-metadata/div';
|
|
import { ComponentMeta } from '../../src/component-meta';
|
|
|
|
const mockCreateSettingEntry = jest.fn();
|
|
jest.mock('../../src/designer/designer', () => {
|
|
return {
|
|
Designer: jest.fn().mockImplementation(() => {
|
|
return {
|
|
getGlobalComponentActions: () => [],
|
|
};
|
|
}),
|
|
};
|
|
});
|
|
|
|
let designer = null;
|
|
beforeAll(() => {
|
|
designer = new Designer({});
|
|
});
|
|
|
|
describe('组件元数据处理', () => {
|
|
it('构造函数', () => {
|
|
const meta = new ComponentMeta(designer, divMeta);
|
|
console.log(meta);
|
|
});
|
|
}); |