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

expect().toBe() diff broken with unicode #10852

Open
pfgithub opened this issue May 5, 2024 · 0 comments
Open

expect().toBe() diff broken with unicode #10852

pfgithub opened this issue May 5, 2024 · 0 comments
Labels
bug Something isn't working jest Something related to the `bun test` runner

Comments

@pfgithub
Copy link
Contributor

pfgithub commented May 5, 2024

What version of Bun is running?

1.1.7+b0b7db5c0

What platform is your computer?

Darwin 23.2.0 arm64 arm

What steps can reproduce the bug?

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

test("toBe", () => {
    expect("\xe6\xb5").toBe("\u6D4B");
});

bun test a.test.js

What is the expected behavior?

Expected: æµ
Received: 测

What do you see instead?

Expected: "���"
Received: "�"

Additional information

No response

@pfgithub pfgithub added the bug Something isn't working label May 5, 2024
@Electroid Electroid added the jest Something related to the `bun test` runner label May 6, 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 jest Something related to the `bun test` runner
Projects
None yet
Development

No branches or pull requests

2 participants