An open API service indexing awesome lists of open source software.

https://github.com/fabiospampinato/qunit-ava-spec

Helper functions for using QUnit as if it was ava/ava-spec.
https://github.com/fabiospampinato/qunit-ava-spec

ava ava-spec qunit

Last synced: 3 months ago
JSON representation

Helper functions for using QUnit as if it was ava/ava-spec.

Awesome Lists containing this project

README

          

# QUnit AVA Spec

Helper functions for using [QUnit](https://api.qunitjs.com/) as if it was [ava](https://github.com/avajs/ava)/[ava-spec](https://github.com/sheerun/ava-spec).

## Install

```sh
npm install --save-dev qunit-ava-spec
```

## Usage

Load it after having loaded QUnit:

```html

```

Then use it like you would use [ava](https://github.com/avajs/ava):

```js
test ( 'Foo', t => {
t.is ( true, false );
});
```

Or [ava-spec](https://github.com/sheerun/ava-spec):

```js
describe ( 'Foo', it => {
it ( 'does something useful', t => {
t.true ( false );
});
});
```

If you need [hooks](https://api.qunitjs.com/QUnit/module) you can pass them as a second optional argument to `describe`.

## License

MIT © Fabio Spampinato