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
|
# 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
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
|
@ -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]),
|
||||||
|
|
Loading…
Reference in a new issue