chore: use strict typing in tests (#8524)

* The testing tsconfig.json inherits from the base TS config.
  * A lot of type assertions have been inserted...a lot.
* All testing utilities have migrated to TS.
* text-diff is being replaced with diff for TS compatibility.
* ProtocolError has been added to PuppeteerErrors and PuppeteerErrors is no longer a record (it's been frozen).
* Fixes a small bug where null was an allowable media type in emulation (should be undefined).
This commit is contained in:
jrandolf
2022-06-15 12:09:22 +02:00
committed by GitHub
parent 80373f7a12
commit 570087ea94
59 changed files with 4877 additions and 2954 deletions

2
.gitignore vendored
View File

@@ -3,7 +3,7 @@
/.dev_profile*
/.local-chromium/
/.local-firefox/
/test/test-user-data-dir*
/test/output-*/
build/
coverage
coverage/