We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RegExp
Set
Describe the bug
The expect function compares class instances incorrectly.
expect
Steps to Reproduce
import { expect } from "jsr:@std/expect"; Deno.test("expect bug", () => { // This should throw, but passes expect(/foo/).toEqual(new Set()); });
Expected behavior
The expect should throw because a RegExp instance isn't the same as a Set
Environment
The text was updated successfully, but these errors were encountered:
Just checked, this works as expected in jest where it throws like you'd expect.
jest
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
The
expect
function compares class instances incorrectly.Steps to Reproduce
Expected behavior
The expect should throw because a
RegExp
instance isn't the same as aSet
Environment
The text was updated successfully, but these errors were encountered: