Skip to content

Commit

Permalink
build examples, increase tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarcos committed Sep 7, 2023
1 parent 13ca992 commit ae453f3
Show file tree
Hide file tree
Showing 4 changed files with 248 additions and 8 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ jobs:
run: |
yarn lint
yarn test
yarn start &
- name: Run Cypress tests
run: |
yarn build:examples
yarn serve:examples &
yarn cypress run
- name: Upload Cypress Screenshots
Expand Down
4 changes: 2 additions & 2 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const comparePDFConfig: ComparePdfConfig = {
imageEngine: "native",
density: 150,
quality: 80,
tolerance: 0,
threshold: 0.1,
tolerance: 5,
threshold: 0.2,
cleanPngPaths: false,
matchPageCount: true,
disableFontFace: true,
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"scripts": {
"start": "parcel examples/index.html",
"build": "parcel build src/index.ts",
"build:examples": "parcel build",
"serve:examples": "PORT=1234 serve -d dist",
"clean": "rimraf dist",
"docs": "typedoc --plugin typedoc-plugin-markdown --out docs src/index.ts src/types.ts src/constants.ts",
"test": "npm run lint && jest",
Expand Down Expand Up @@ -59,6 +61,7 @@
"react-test-renderer": "^16.14.0",
"release-it": "^16.1.5",
"rimraf": "^5.0.0",
"serve": "^14.2.1",
"ts-jest": "^29.1.1",
"typedoc": "^0.24.4",
"typedoc-plugin-markdown": "^3.15.2",
Expand Down
Loading

0 comments on commit ae453f3

Please sign in to comment.