Skip to content

ReferenceError: $ is not defined #963

@LiTiang

Description

@LiTiang

How can i use AVA with jQuery ?

In my case,
i want to test a function which is in a file called app.ts (typescript file)

and i use $.ajax (jQuery API) in that function,

so AVA will want to ask me : what is the $ meaning ?????

Note that, i want to keep unit test simple, clear,

i use jQuery, but it is not meaning i also want to test DOM

NOW i just want to let jQuery work in AVA

How can do that ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions