Fix jest issue

This commit is contained in:
Steve Ruiz 2021-08-31 22:43:04 +01:00
parent 60379adea4
commit bbcf629681
3 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -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": {

View file

@ -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]),