Cannot exclude "@types/mocha" issues
See original GitHub issue/Users/thomas/Desktop/agnostic/node_modules/@types/mocha/index.d.ts (2514,13): Subsequent variable declarations must have the same type. Variable 'beforeEach' must be of type 'Lifecycle', but here has type 'HookFunction'.
/Users/thomas/Desktop/agnostic/node_modules/@types/mocha/index.d.ts (2532,13): Subsequent variable declarations must have the same type. Variable 'afterEach' must be of type 'Lifecycle', but here has type 'HookFunction'.
/Users/thomas/Desktop/agnostic/node_modules/@types/mocha/index.d.ts (2548,13): Subsequent variable declarations must have the same type. Variable 'describe' must be of type 'Describe', but here has type 'SuiteFunction'.
/Users/thomas/Desktop/agnostic/node_modules/@types/mocha/index.d.ts (2569,13): Subsequent variable declarations must have the same type. Variable 'xdescribe' must be of type 'Describe', but here has type 'PendingSuiteFunction'.
/Users/thomas/Desktop/agnostic/node_modules/@types/mocha/index.d.ts (2583,13): Subsequent variable declarations must have the same type. Variable 'it' must be of type 'It', but here has type 'TestFunction'.
/Users/thomas/Desktop/agnostic/node_modules/@types/mocha/index.d.ts (2597,13): Subsequent variable declarations must have the same type. Variable 'test' must be of type 'It', but here has type 'TestFunction'.
/Users/thomas/Desktop/agnostic/node_modules/@types/mocha/index.d.ts (2604,13): Subsequent variable declarations must have the same type. Variable 'xit' must be of type 'It', but here has type 'PendingTestFunction'.
No output definition. Probably caused by errors prior to this?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Cannot find name 'describe'. Do you need to install type ...
I'm using Visual Studio Code as my IDE and in my Angular project, and I had to comment-out/remove types in file tsconfig.json and...
Read more >cannot find name 'test'. do you need to install type definitions ...
I'm using Visual Studio Code as my IDE and in my Angular project, and I had to comment-out/remove types in file tsconfig.json and...
Read more >ts-mocha - npm
Mocha thin wrapper that allows running TypeScript tests with TypeScript runtime (ts-node) to get rid of compilation complexity.
Read more >mocha Archives - Coding Beauty
How to Fix the “Cannot Find name 'describe'” Error in TypeScript ... We'll fix this issue by simply moving the pattern string from...
Read more >Using TypeScript | Ethereum development environment for ...
In this guide, we will go through the steps to get a Hardhat project working with TypeScript. This means that you can write...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For the record: Did you check out working with vega/ts-json-schema-generator? It takes a far more sophisticated approach by walking the AST itself (in contrast to this project which effectively just asks the compiler for the type at point). It therefore sometimes lags behind with very recent additions to the type system, but for me it works far more reliable.
This project is like a pure black box that nothing could be controlled properly