Skip to content

Commit 4e95061

Browse files
Update jest.md
1 parent c4ec1e1 commit 4e95061

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

recipes/javascript/tests/jest.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ See [Jest](https://jestjs.io/) homepage.
66
Use the following pattern for placing naming your test scripts, so Jest can find them,.
77

88
- Scripts `tests/unit` that end in `.spec.(js|jsx|ts|tsx)`. e.g. `src/tests/unit/foo.spec.js`.
9-
- Any js(x)/ts(x) files inside `__tests__` directories. e.g. `src/__tests__/foo.test.js`.
9+
- Any `js(x)/ts(x)` files inside `__tests__` directories. e.g. `src/__tests__/foo.test.js`.
1010

1111

1212

@@ -50,6 +50,7 @@ $ npm install jest -D
5050
})
5151

5252
// To group cases, use `describe` and `it` (which is an alias for `test`).
53+
// You can also have 2 `describe` levels around `it`.
5354
describe("Hello.vue", () => {
5455
it("can square a number successfully", () => {
5556
expect(foo(3)).toEqual(9);

0 commit comments

Comments
 (0)