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
Due to limitations in ES5, .instanceof may not always work as expected when using a transpiler such as Babel or TypeScript. In particular, it may produce unexpected results when subclassing built-in object such as Array, Error, and Map. See your transpiler’s docs for details:
Current behavior:
Working off of one of the official examples:
https://github.com/cypress-io/cypress-example-api-testing/blob/master/cypress/integration/example_spec.js#L52-L56
if I replace this section with:
this yields this failure:
AssertionError: expected [ Array(2) ] to be an instance of Array
Desired behavior:
Should pass since it indeed it is an
Array
Steps to reproduce: (app code and test code)
npm i
,npm start
, andnpm run cy:open
example_spec.js
test from Cypress uiVersions
cypress: 3.0.1
os: Windows 10
browser: Chrome 70
The text was updated successfully, but these errors were encountered: