소스 검색

docs: Add note on jest runInBand

Michael Bromley 4 년 전
부모
커밋
91d0bacb13
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      docs/content/developer-guide/testing.md

+ 8 - 0
docs/content/developer-guide/testing.md

@@ -124,3 +124,11 @@ it('myNewQuery returns the expected result', async () => {
 ```
 
 Running the test will then assert that your new query works as expected.
+
+### Run your tests
+
+All that's left is to run your tests to find out whether your code behaves as expected!
+
+{{< alert "warning" >}} 
+**Note:** When using **Jest**, make sure you run with the [`--runInBand` option](https://jestjs.io/docs/cli#--runinband), which ensures that your tests run in series rather than in parallel.
+{{< /alert >}}