Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Unreleased

- Add `prettier:fix` and `prettier:check` npm scripts
- Fix garbled text copying in Chrome/Edge for PDFs with >256 unique characters (#1659)
- Fix Link accessibility issues
- Fix Table Accessibility Issue: Operator CS/cs not allowed in this current state
Expand Down
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ Test commands
* `npm run test:unit`: Run unit tests
* `npm run test:visual`: Run visual tests
* `npm run lint`: Run linter
* `npm run prettier:fix`: Run prettier
To write new tests, look for the *.spec.js files at `test/unit` and `test/visual` as examples
> Visual tests should use an embedded font, instead of system fonts, to ensure uniform rendering between different environments
> Visual tests should use an embedded font, instead of system fonts, to ensure uniform rendering between different environments. In addition it should only have 1 test per file.
## Documentation
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
"docs": "npm run pdf-guide && npm run website && npm run browserify-example",
"lint": "eslint {lib,tests}/**/*.js",
"prettier": "prettier lib tests docs",
"prettier:fix": "prettier --write lib tests docs",
"prettier:check": "prettier --check lib tests docs",
"test": "jest",
"test:visual": "jest visual/",
"test:unit": "jest unit/"
Expand Down