We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4ec1e1 commit 4e95061Copy full SHA for 4e95061
recipes/javascript/tests/jest.md
@@ -6,7 +6,7 @@ See [Jest](https://jestjs.io/) homepage.
6
Use the following pattern for placing naming your test scripts, so Jest can find them,.
7
8
- 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`.
+- Any `js(x)/ts(x)` files inside `__tests__` directories. e.g. `src/__tests__/foo.test.js`.
10
11
12
@@ -50,6 +50,7 @@ $ npm install jest -D
50
})
51
52
// To group cases, use `describe` and `it` (which is an alias for `test`).
53
+ // You can also have 2 `describe` levels around `it`.
54
describe("Hello.vue", () => {
55
it("can square a number successfully", () => {
56
expect(foo(3)).toEqual(9);
0 commit comments