const expect = require('expect') const { When, Then } = require('cucumber') const compared = require('../support/compared') When('I use jest', function () { }) Then('I see jest diff on failure', function () { expect(compared.actual).toEqual(compared.expected) })