Skip to content

Commit

Permalink
docs: update testFactory() description in CONTRIBUTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
HiDeoo committed Apr 15, 2024
1 parent 6a1a5e1 commit 101e5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ pnpm test:e2e

Each subdirectory of `packages/starlight/__e2e__/fixtures` should contain the basic files needed to run Starlight (`package.json`, `astro.config.mjs`, a content collection configuration in `src/content/config.ts` and some content to render in `src/content/docs/`).

The `testFactory()` helper can be used in a test file to define the fixture which will be loaded in a dev server during a set of tests.
The `testFactory()` helper can be used in a test file to define the fixture which will be built and loaded in a preview server during a set of tests.

```ts
// packages/starlight/__e2e__/feature.test.ts
Expand Down

0 comments on commit 101e5d6

Please sign in to comment.