Fix jest issue
This commit is contained in:
parent
60379adea4
commit
bbcf629681
3 changed files with 5 additions and 4 deletions
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
|
@ -8,6 +8,9 @@ jobs:
|
|||
# install modules
|
||||
- name: Install modules
|
||||
run: yarn
|
||||
# build
|
||||
- name: Build
|
||||
run: yarn build:packages
|
||||
# run unit tests
|
||||
- name: Jest Annotations & Coverage
|
||||
uses: mattallty/jest-github-action@v1.0.3
|
||||
|
|
|
@ -102,8 +102,8 @@
|
|||
},
|
||||
"testEnvironment": "jsdom",
|
||||
"modulePathIgnorePatterns": [
|
||||
"<rootDir>/packages/core/build/",
|
||||
"<rootDir>/packages/tldraw/build/",
|
||||
"<rootDir>/packages/core/dist/",
|
||||
"<rootDir>/packages/tldraw/dist/",
|
||||
"<rootDir>/packages/tldraw/test-utils/"
|
||||
],
|
||||
"moduleNameMapper": {
|
||||
|
|
|
@ -271,8 +271,6 @@ export class Draw extends TLDrawShapeUtil<DrawShape> {
|
|||
|
||||
const points = shape.points.map(([x0, y0, p, t]) => Vec.round([x0 - x1, y0 - y1]).concat(p, t))
|
||||
|
||||
console.log(points)
|
||||
|
||||
return {
|
||||
points,
|
||||
point: Vec.add(shape.point, [x1, y1]),
|
||||
|
|
Loading…
Reference in a new issue