1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-02 13:16:08 +02:00

Cypress typescript (#13591)

* convert Cypress tests to TypeScript

this work was done by @lunaisnotaboy https://github.com/lunaisnotaboy
for their fork https://github.com/cutiekey/cutiekey/pull/7

I just repacked their changes into a minimal set

* fix call to `window` in cypress tests

this error was spotted thanks to the TypeScript compiler:

```
support/commands.ts:33:12 - error TS2559: Type '(win: any) => void'
has no properties in common with type 'Partial<Loggable &
Timeoutable>'.

33  cy.window(win => {
              ~~~~~~~~

Found 1 error in support/commands.ts:33
```

(again, @lunaisnotaboy did the actual work)
This commit is contained in:
Gianni Ceccarelli
2024-03-20 02:25:49 +00:00
committed by GitHub
parent 115d91812e
commit d7bb6c88d3
9 changed files with 38 additions and 1 deletions

View File

@@ -59,6 +59,7 @@
"typescript": "5.3.3"
},
"devDependencies": {
"@types/node": "^20.11.28",
"@typescript-eslint/eslint-plugin": "7.1.0",
"@typescript-eslint/parser": "7.1.0",
"cross-env": "7.0.3",