Skip to content

Commit 0d92d18

Browse files
Corrections for better understanding.
1 parent 97e35b9 commit 0d92d18

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/fixtures/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Fixture content
22

33
Fixture content is content (and data) that is meant to look very similar
4-
to the real content, but exists for the benefit of testing functionality.
4+
to the real content but exists for the benefit of testing functionality.
55

6-
In its simplest form, code and content is intricately linked, and oftentimes
6+
In its simplest form, code and content are intricately linked, and oftentimes
77
to be able to have automated testing of functionality, you need some content
88
to exercise that functionality.
99

@@ -13,24 +13,24 @@ sustainably works when we're changing any code, but without having to
1313
worry about the real English content breaking the tests.
1414

1515
**Note!** We also don't want the writers of the real English content to
16-
have to worry about breaking tests of functionality.
16+
have to worry about breaking functionality tests.
1717

1818
## How to write fixtured based rendering tests
1919

2020
The content is in `src/fixtures/fixtures/content/` (and `src/fixtures/fixtures/data/`)
21-
is a cut down version of the real `content/` (and `data/`) at the root.
22-
It doesn't have nearly as many pages and if you look closely you'll see
21+
is a cut-down version of the real `content/` (and `data/`) at the root.
22+
It doesn't have nearly as many pages, and if you look closely, you'll see
2323
references and mentions to unrealistic things like "foo" or "HubGit"
24-
which are whimsical but also importantly *different*. If it works
25-
with any silly name, the code is modular and good.
24+
which are whimsical but more importantly *different*. The code is modular and good if it works
25+
with any silly name.
2626

2727
### Quickstart
2828

2929
Navigate around in `src/fixtures/fixtures/content/` and familiarize yourself
3030
with the directory structure. The only things that are "identical" to the
31-
real content is the top-level product names which match the real content.
31+
actual content are the top-level product names, which match the actual content.
3232
Deeper than the product level, the names and directories can be whatever
33-
you want it to be.
33+
you want them to be.
3434

3535
Once you've found a place to put some fixture content, before writing
3636
a `vitest` test, you can preview your changes using:

0 commit comments

Comments
 (0)