File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ See [Jest](https://jestjs.io/) homepage.
6
6
Use the following pattern for placing naming your test scripts, so Jest can find them,.
7
7
8
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 ` .
9
+ - Any ` js(x)/ts(x) ` files inside ` __tests__ ` directories. e.g. ` src/__tests__/foo.test.js ` .
10
10
11
11
12
12
@@ -50,6 +50,7 @@ $ npm install jest -D
50
50
})
51
51
52
52
// To group cases, use `describe` and `it` (which is an alias for `test`).
53
+ // You can also have 2 `describe` levels around `it`.
53
54
describe("Hello.vue", () => {
54
55
it("can square a number successfully", () => {
55
56
expect(foo(3)).toEqual(9);
You can’t perform that action at this time.
0 commit comments