fix(editor): add yarn test and fix CI

This commit is contained in:
Tienson Qin
2020-12-02 11:27:57 +08:00
parent 9f2346ebbd
commit 4d59e4317d
2 changed files with 6 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
if (typeof window === 'undefined') {
global.window = {}
}
// Copy from https://github.com/primetwig/react-nestable/blob/dacea9dc191399a3520f5dc7623f5edebc83e7b7/dist/utils.js
export var closest = function closest (target, selector) {
// closest(e.target, '.field')