phongnd39 / cypress-jest-adapter

Add jest assertion style to Cypress expect command
MIT License
92 stars 5 forks source link

expect('').toBeEmpty() throws #13

Open nshaikhinurov opened 4 years ago

nshaikhinurov commented 4 years ago

There is an inconsistent behavior in .toBeEmpty() matcher. expect('').toBeEmpty() throws in cypress environment with AssertionError: expected '' to be empty but passes as expected in usual jest tests. However expect('').to.be.empty works fine

nshaikhinurov commented 4 years ago

also expect('usd/eur').toNotBeEmpty() throws with Error: Syntax error, unrecognized expression: usd/eur