question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created 3 years ago
  • Reactions:9
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
MarcusRiemercommented, Mar 28, 2022

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.

1reaction
reorxcommented, Mar 27, 2022

This project is like a pure black box that nothing could be controlled properly

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found