spaceagetv / electron-playwright-helpers

Helper functions for running Electron end-to-end tests using Playwright.
MIT License
55 stars 4 forks source link

Typo in main example??? #37

Open steve981cr opened 1 year ago

steve981cr commented 1 year ago

The Readme includes a JavaScript example line:

let electronApp: ElectronApplication

I've never seen that kind of syntax for a variable declaration and when I use it my linter shows an error so I'm assuming that's a typo.

jjeff commented 1 year ago

It's Typescript. I'm defining the variable scope and type.

steve981cr commented 1 year ago

Oh, got it. Thanks.

jjeff commented 1 year ago

Yeah. That's in the Javascript section of the docs. I'll fix it.

Thanks for the note!

jjeff commented 1 year ago

In the meantime, just change to:

let electronApp