Test.todo typings may be wrong: error TS2345: Argument of type 'string' is not assignable to parameter of type 'ContextualTest'.
See original GitHub issueDescription
When using test.todo with Typescript, I pass in one string, like:
test.todo('Model should require attributes');
But I receive the error
error TS2345: Argument of type 'string' is not assignable to parameter of type 'ContextualTest'.
When I try to compile before I run.
Test Source
import test from 'ava';
test.todo('Model should require attributes');
Error Message & Stack Trace
λ npm run build
> nodemodulesystem@0.0.0 build C:\Users\Justin\nodemodulesystem
> tsc
src/module/controller/controller.spec.ts(3,11): error TS2345: Argument of type 'string' is not assignable to parameter of type 'ContextualTest'.
Command-Line Arguments
I am not getting the error from this but I’ll include it anyways…
nyc ava **/*.spec.js
Relevant Links
https://github.com/JustinDFuller/NodeModuleSystem
Environment
Tell us which operating system you are using, as well as which versions of Node.js, npm, and AVA. Run the following to get it quickly:
Node.js v6.5.0
win32 10.0.14393
0.16.0
3.10.7
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Bountysource
Test.todo typings may be wrong: error TS2345: Argument of type 'string' is not assignable to parameter of type 'ContextualTest'.
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 Free
Top 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
Encounter the same issue. ava@0.17.0
Please try installing from
master
.