cypress-diff
Keep in mind that it's still in beta. Please, report any issues you find. Moreover, this library is designed to work with texts and objects.
Installation
npm i -D cypress-diff
Usage
Add the following line to your cypress/support/e2e.js
file:
JavaScript
require('cypress-diff');
TypeScript
import 'cypress-diff';
Configuration (optional)
In case you are using a Cypress.on('fail')
handler in your tests already then you can configure the plugin like this:
const { onFailHandler } = require('cypress-diff');
Cypress.on('fail', (error, runnable) => {
onFailHandler(error, runnable);
});
License
MIT
Author
Yevhen Laichenkov elaichenkov@gmail.com