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