Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Error : jquery_1.default is not a function #2

Open
BorderCloud opened this issue Aug 3, 2017 · 1 comment
Open

Error : jquery_1.default is not a function #2

BorderCloud opened this issue Aug 3, 2017 · 1 comment

Comments

@BorderCloud
Copy link

BorderCloud commented Aug 3, 2017

Hello

I try to test a lib with JQuery with your package but I have an error.

Example :

import { test } from 'ava'
import $ from 'jquery'
import {fixture} from 'ava-browser-fixture'

test.beforeEach('setup fixture',
    fixture("./src/__test__/html/test.html")
);

test("Test JQuery", t => {
    $(t.context.document).ready(function () { // <=== ERROR
        $('#test').append("test")
    });
});

Error : jquery_1.default is not a function

Have you na idea to resolve this error ?

NB : question also in Stackoverflow https://stackoverflow.com/questions/45492984/how-use-ava-with-jquery-in-typescript

Thanks

@pk-developer
Copy link

Probably it will help you
TypeStrong/atom-typescript#237 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants