Top "Ava" questions

AVA is a fast and simple JavaScript test runner with builtin support for ES2015.

Error: *.default is not a constructor

I get the following error, when testing some javascript code, transpiled from a typescript file. Here is the error: Error: _…

javascript typescript ava
How to setup jsdom when working with jest

I'm trying to migrate from AVA to Jest. In AVA you can set ava.setup, in which you set the …

javascript jestjs jsdom ava
Writing unit tests for method that uses jwt token in javascript

I have been trying to write unit test in javascript for the method which uses jwt token validation. So the …

javascript unit-testing jwt sinon ava
How to mock request-promise-native for NodeJS unit testing?

My NodeJS application uses request-promise-native. import request from 'request-promise-native' const https = require('https') const myRequest = request.defaults({ baseUrl: 'myBaseUrl', agent: …

node.js unit-testing sinon ava
ava: SyntaxError: Unexpected token import

So ava comes with build-in ES2015 support, which works fine for my actual test files. However, when I do import {…

ava