Error : jquery_1.default is not a function
Opened this issue · 1 comments
BorderCloud commented
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 commented
Probably it will help you
TypeStrong/atom-typescript#237 (comment)