You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Cypress automatically includes Underscore and exposes it as Cypress._. where you can call any valid Underscore method on Cypress._.
New behavior:
Cypress has updated our internal libraries including the driver to use lodash. It then seemed unnecessary to include both Underscore and lodash in order to maintain Cypress._ current use.
Also, since any library can be imported, the use of Cypress._ is not as essential as it once was.
If you want to continue using Underscore methods in your tests, you can include the following after npm install --save-dev underscore:
var_=require('underscore')it('calls an underscore method',function(){cy.request('https://jsonplaceholder.typicode.com/users').then(function(response){varids=_.chain(response.body).pluck('id').first(3).value()expect(ids).to.deep.eq([1,2,3])})})
The text was updated successfully, but these errors were encountered:
Current behavior:
Currently, Cypress automatically includes Underscore and exposes it as
Cypress._.
where you can call any valid Underscore method onCypress._
.New behavior:
Cypress has updated our internal libraries including the driver to use lodash. It then seemed unnecessary to include both Underscore and lodash in order to maintain
Cypress._
current use.Also, since any library can be imported, the use of
Cypress._
is not as essential as it once was.If you want to continue using Underscore methods in your tests, you can include the following after
npm install --save-dev underscore
:The text was updated successfully, but these errors were encountered: