Skip to content

Test.todo typings may be wrong: error TS2345: Argument of type 'string' is not assignable to parameter of type 'ContextualTest'. #1081

@JustinDFuller

Description

@JustinDFuller

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcurrent functionality does not work as desiredhelp wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions