mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: migrate tests to TypeScript (#6075)
This CL migrates all the tests to TypeScript. The main benefits of this is that we start consuming our TypeScript definitions and therefore find errors in them. The act of migrating found some bugs in our definitions and now we can be sure to avoid them going forwards. You'll notice the addition of some `TODO`s in the code; I didn't want this CL to get any bigger than it already is but I intend to follow those up once this lands. It's mostly figuring out how to extend the `expect` types with our `toBeGolden` helpers and some other slight confusions with types that the tests exposed. Co-authored-by: Mathias Bynens <mathias@qiwi.be>
This commit is contained in:
@@ -14,6 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// TODO (@jackfranklin): convert this to TypeScript and enable type-checking
|
||||
// @ts-nocheck
|
||||
|
||||
/* We want to ensure that all of Puppeteer's public API is tested via our unit
|
||||
* tests but we can't use a tool like Istanbul because the way it instruments
|
||||
* code unfortunately breaks in Puppeteer where some of that code is then being
|
||||
|
||||
Reference in New Issue
Block a user