From 65828113982427c57226aad8d478797569795b30 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Fri, 14 Jun 2024 14:38:55 +0000 Subject: [PATCH] [ci] format --- CONTRIBUTING.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8cfbe53d73..918fffaca7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -113,7 +113,7 @@ node --test ./test/foo.test.js #### Running a single test -Sometimes you want to run a single test case (`it` or `describe`) or a single test file. You can do so by using Node.js. +Sometimes you want to run a single test case (`it` or `describe`) or a single test file. You can do so by using Node.js. To run a single test file, for example `test/astro-basic.test.js`: @@ -139,8 +139,9 @@ node --test --test-only test/astro-basic.test.js ``` > [!WARNING] +> > 1. If you have nested `describe`, all of them must postfix with `.only` -> 2. `--test-only` and `--test` must be placed **before** declaring the path to the file. Failing to do so will test all files +> 2. `--test-only` and `--test` must be placed **before** declaring the path to the file. Failing to do so will test all files #### Debugging tests in CI