blob: eba6dc701f51f92e8a195be238a8f8cc267ec274 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# @ava/babel-preset-transform-test-files [](https://travis-ci.org/avajs/babel-preset-transform-test-files)
> [Babel] preset for use with [AVA] test files
Currently contains:
- [`babel-plugin-espower`](https://github.com/power-assert-js/babel-plugin-espower) and the patterns that should be enhanced
- [`@ava/babel-plugin-throws-helper`](https://github.com/avajs/babel-plugin-throws-helper/)
## Install
```console
$ npm install --save @ava/babel-preset-transform-test-files
```
## Usage
Add `@ava/transform-test-files` to your [Babel] presets. You can disable `babel-plugin-espower` by setting the `powerAssert` option to `false`:
```json
{
"presets": [
["@ava/transform-test-files", {"powerAsssert": false}]
]
}
```
Require `@ava/babel-preset-transform-test-files/package-hash` to get a combined hash for the installed version of the preset, as well as the plugins used.
[AVA]: https://ava.li
[Babel]: https://babeljs.io
|