refactor: init cypress-cucumber-preprocessor install.
This commit is contained in:
22
node_modules/assertion-error-formatter/README.md
generated
vendored
Normal file
22
node_modules/assertion-error-formatter/README.md
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
# Node Assertion Error Formatter
|
||||
|
||||
Format errors to display a diff between the actual and expected
|
||||
|
||||
Originally extracted from [mocha](https://github.com/mochajs/mocha)
|
||||
|
||||
## Usage
|
||||
```js
|
||||
import {format} from 'assertion-error-formatter'
|
||||
|
||||
format(error)
|
||||
```
|
||||
|
||||
## API Reference
|
||||
|
||||
#### `format(error [, options])`
|
||||
|
||||
* `error`: a javascript error
|
||||
* `options`: An object with the following keys:
|
||||
* `colorFns`: An object with the keys 'diffAdded', 'diffRemoved', 'errorMessage', 'errorStack'. The values are functions to colorize a string, each defaults to identity.
|
||||
* `inlineDiff`: boolean (default: false)
|
||||
* toggle between inline and unified diffs
|
Reference in New Issue
Block a user