Fix incorrect file name in React component test example 🌟 (#25167)

# What does this PR do?

Nyaa~ This PR fixes a small mistake in the documentation where the code
block for a React component test example was using the wrong filename!
(;ω;)💦

It was previously labeled as `matchers.d.ts`, but it should be something
like `myComponent.test.tsx` to properly reflect a test file for a React
component using `@testing-library/react`. 🧁

This makes the example clearer and more accurate for developers using
Bun to test their React components~! 💻🌸💕

# How did you verify your code works?

It's just docs, one single line 🥺

Pwease review and merge it when you can, senpai~~! UwU 🌈🫧
This commit is contained in:
Henrique Fonseca
2025-11-28 04:15:34 -03:00
committed by GitHub
parent c7f7d9bb82
commit 1006a4fac2

View File

@@ -76,7 +76,7 @@ declare module "bun:test" {
You should now be able to use Testing Library in your tests
```ts matchers.d.ts icon="/icons/typescript.svg"
```tsx myComponent.test.tsx icon="/icons/typescript.svg"
import { test, expect } from "bun:test";
import { screen, render } from "@testing-library/react";
import { MyComponent } from "./myComponent";