Skip to content
New issue

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

[Regression] Bun snapshot test fails when escaping characters in v1.1.36 #15283

Closed
esciullo opened this issue Nov 20, 2024 · 1 comment · Fixed by #15183
Closed

[Regression] Bun snapshot test fails when escaping characters in v1.1.36 #15283

esciullo opened this issue Nov 20, 2024 · 1 comment · Fixed by #15183
Assignees
Labels
bug Something isn't working bun:test Something related to the `bun test` runner

Comments

@esciullo
Copy link

What version of Bun is running?

1.1.36+ededc168c

What platform is your computer?

Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 x86_64

What steps can reproduce the bug?

Run bun test twice with the following code

import { it, expect } from "bun:test";

it("Should work", () => {
  expect(`This is \`wrong\``).toMatchSnapshot();
});

What is the expected behavior?

It should pass after running twice.

What do you see instead?

The second run fails.

Additional information

No response

@esciullo esciullo added bug Something isn't working needs triage labels Nov 20, 2024
@Jarred-Sumner
Copy link
Collaborator

We will fix this in Bun v1.1.37, which ships tomorrow

@RiskyMH RiskyMH added bun:test Something related to the `bun test` runner and removed needs triage labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bun:test Something related to the `bun test` runner
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants