4 Commits
Author SHA1 Message Date
Jonas Jenwald 9cad39aec7 Replace forEach callback functions with arrow functions
This improves consistency in the code-base, and it's also a tiny bit shorter which cannot hurt.
2026-09-09 13:56:07 +02:00
Nicolò Ribaudo 2f2d5c9e27 Add script to check license headers 2026-03-04 10:40:39 +01:00
Tim van der MeijandWojciech Maj a562c41e12 Remove the rimraf dependency in favor of the built-in Node.js fs.rmSync in the test folder
In Node.js 14.14.0 the `fs.rmSync` function was added that removes files
and directories. The `recursive` option is used to remove directories
and their contents, making it a drop-in replacement for the `rimraf`
dependency we use.

Given that PDF.js now requires Node.js 18+ we can be sure that this
option is available, so we can safely remove `rimraf` and reduce the
number of project dependencies in the test folder.

This commit also gets rid of the indirection via the `removeDirSync`
test helper function by simply calling `fs.rmSync` directly.

Co-authored-by: Wojciech Maj <kontakt@wojtekmaj.pl>
2024-04-14 16:41:59 +02:00
Jonas Jenwald a209ce811d [ESM] Convert *most* of test-folder to use standard modules 2023-07-08 13:13:04 +02:00