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.
- Host: GitHub
- URL: https://github.com/fabiospampinato/qunit-ava-spec
- Owner: fabiospampinato
- License: mit
- Created: 2019-04-17T16:25:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-24T16:28:50.000Z (about 2 years ago)
- Last Synced: 2024-11-23T21:35:57.844Z (11 months ago)
- Topics: ava, ava-spec, qunit
- Language: TypeScript
- Size: 8.79 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
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