From 77ba9fa8894cc9328676ec8bf729ec192986db37 Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Sat, 5 Feb 2022 12:48:17 +0800 Subject: [PATCH] docs: add note of third-party matchers (#676) --- docs/guide/features.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/guide/features.md b/docs/guide/features.md index 68adca1f05bc..1691493520da 100644 --- a/docs/guide/features.md +++ b/docs/guide/features.md @@ -177,6 +177,8 @@ You can also use `.skip`, `.only`, and `.todo` with concurrent suites and tests. [Chai](https://www.chaijs.com/) built-in for assertions plus [Jest expect](https://jestjs.io/docs/expect) compatible APIs +Notice that if you are using third-party libraries that add matchers, setting `test.globals` to `true` will provide better compatibility + ## Mocking [Tinyspy](https://github.com/Aslemammad/tinyspy) built-in for mocking with `jest` compatible APIs on `vi` object.