Support specifying minimum Node version a test requires (#5765)
This commit is contained in:
@@ -188,6 +188,15 @@ If you need to check for an error that is thrown you can add to the `options.jso
|
||||
}
|
||||
```
|
||||
|
||||
If the test requires a minimum Node version, you can add `minNodeVersion` (must be in semver format).
|
||||
|
||||
```js
|
||||
// options.json example
|
||||
{
|
||||
"minNodeVersion": "5.0.0"
|
||||
}
|
||||
```
|
||||
|
||||
#### Bootstrapping expected output
|
||||
|
||||
For both `babel-plugin-x` and `babylon`, you can easily generate an `expected.js`/`expected.json` automatically by just providing `actual.js` and running the tests as you usually would.
|
||||
|
||||
Reference in New Issue
Block a user