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 # install modules
- name: Install modules - name: Install modules
run: yarn run: yarn
# build
- name: Build
run: yarn build:packages
# run unit tests # run unit tests
- name: Jest Annotations & Coverage - name: Jest Annotations & Coverage
uses: mattallty/jest-github-action@v1.0.3 uses: mattallty/jest-github-action@v1.0.3

View file

@ -102,8 +102,8 @@
}, },
"testEnvironment": "jsdom", "testEnvironment": "jsdom",
"modulePathIgnorePatterns": [ "modulePathIgnorePatterns": [
"<rootDir>/packages/core/build/", "<rootDir>/packages/core/dist/",
"<rootDir>/packages/tldraw/build/", "<rootDir>/packages/tldraw/dist/",
"<rootDir>/packages/tldraw/test-utils/" "<rootDir>/packages/tldraw/test-utils/"
], ],
"moduleNameMapper": { "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)) const points = shape.points.map(([x0, y0, p, t]) => Vec.round([x0 - x1, y0 - y1]).concat(p, t))
console.log(points)
return { return {
points, points,
point: Vec.add(shape.point, [x1, y1]), point: Vec.add(shape.point, [x1, y1]),