gemini-testing / gemini-testing/testplane
Некорректный тип функции `it(`
- Dominant language
- TypeScript
- Stars
- 830
- Forks
- 76
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 14
Description
### Last Hermione version that worked
7.x.x
### Hermione version
8.1.0
### Code to reproduce the issue
```typescript
it("Мой тест", async ({currentTest}) => {
....
});
```
В новой версии ругается что `currentTest` не определена в `Mocha.TestFunction`, хотя ранее тут был тип `TestDefinition` от Hermione.
### Expected behavior
syntax correct
### Actual behavior
TS2339: Property 'currentTest' does not exist on type 'Done'.
### Additional information
Лечится вот так в проектном `global.d.ts`:
```typescript
// noinspection ES6UnusedImports
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import type Hermione from 'hermione';
```
### Node.js version
20.10.0
### Operating System
macOS
Contributor guide
Assessment
This issue has not been assessed yet.