Skip to content

Commit

Permalink
give title to a code block
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
  • Loading branch information
sarah11918 and delucis committed May 23, 2024
1 parent 70548e0 commit ef06309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/en/guides/testing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ See the [Astro + Vitest starter template](https://github.com/withastro/astro/tre

You can natively test Astro components using the [container API](/en/reference/container-reference/). First, setup [`vitest` as explained above](#vitest), then create a `.test.js` file to test your component:

```js
```js title="example.test.js"
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
import { expect, test } from 'vitest';
import Card from '../src/components/Card.astro';
Expand Down

0 comments on commit ef06309

Please sign in to comment.