mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-22 17:38:12 +00:00
test: 修复单测失败的 case
This commit is contained in:
parent
b84d5c8486
commit
ce898bea0b
@ -4,7 +4,7 @@ module.exports = {
|
|||||||
// // '^.+\\.(ts|tsx)$': 'ts-jest',
|
// // '^.+\\.(ts|tsx)$': 'ts-jest',
|
||||||
// // '^.+\\.(js|jsx)$': 'babel-jest',
|
// // '^.+\\.(js|jsx)$': 'babel-jest',
|
||||||
// },
|
// },
|
||||||
// testMatch: ['**/bugs/*.test.ts'],
|
// testMatch: ['**/designer/designer.test.ts'],
|
||||||
// testMatch: ['(/tests?/.*(test))\\.[jt]s$'],
|
// testMatch: ['(/tests?/.*(test))\\.[jt]s$'],
|
||||||
transformIgnorePatterns: [
|
transformIgnorePatterns: [
|
||||||
],
|
],
|
||||||
@ -23,6 +23,7 @@ module.exports = {
|
|||||||
'!src/builtin-simulator/live-editing/live-editing.ts',
|
'!src/builtin-simulator/live-editing/live-editing.ts',
|
||||||
'!src/designer/offset-observer.ts',
|
'!src/designer/offset-observer.ts',
|
||||||
'!src/designer/clipboard.ts',
|
'!src/designer/clipboard.ts',
|
||||||
|
'!src/builtin-simulator/host.ts',
|
||||||
'!**/node_modules/**',
|
'!**/node_modules/**',
|
||||||
'!**/vendor/**',
|
'!**/vendor/**',
|
||||||
],
|
],
|
||||||
|
|||||||
@ -87,6 +87,7 @@ describe('Designer 测试', () => {
|
|||||||
function setMockDropLocation() {
|
function setMockDropLocation() {
|
||||||
const mockTarget = {
|
const mockTarget = {
|
||||||
document: doc,
|
document: doc,
|
||||||
|
isSlot() { return true; },
|
||||||
children: {
|
children: {
|
||||||
get(x) {
|
get(x) {
|
||||||
return x;
|
return x;
|
||||||
@ -155,6 +156,7 @@ describe('Designer 测试', () => {
|
|||||||
function setMockDropLocation() {
|
function setMockDropLocation() {
|
||||||
const mockTarget = {
|
const mockTarget = {
|
||||||
document: doc,
|
document: doc,
|
||||||
|
isSlot() { return true; },
|
||||||
children: {
|
children: {
|
||||||
get(x) {
|
get(x) {
|
||||||
return x;
|
return x;
|
||||||
@ -310,6 +312,7 @@ describe('Designer 测试', () => {
|
|||||||
it('createLocation / clearLocation', () => {
|
it('createLocation / clearLocation', () => {
|
||||||
const mockTarget = {
|
const mockTarget = {
|
||||||
document: doc,
|
document: doc,
|
||||||
|
isSlot() { return true; },
|
||||||
children: {
|
children: {
|
||||||
get(x) {
|
get(x) {
|
||||||
return x;
|
return x;
|
||||||
@ -334,6 +337,7 @@ describe('Designer 测试', () => {
|
|||||||
designer.createLocation({
|
designer.createLocation({
|
||||||
target: {
|
target: {
|
||||||
document: doc2,
|
document: doc2,
|
||||||
|
isSlot() { return true; },
|
||||||
children: {
|
children: {
|
||||||
get(x) {
|
get(x) {
|
||||||
return x;
|
return x;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user