diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2d1b9630..925ad2e9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -150,10 +150,10 @@ npm run unit -- -j 4 ```js ... // Using "fit" to run specific test - fit('should work', SX(async function() { - const response = await page.goto(EMPTY_PAGE); + fit('should work', async function({server, page}) { + const response = await page.goto(server.EMPTY_PAGE); expect(response.ok).toBe(true); - })) + }) ``` - To disable a specific test, substitute the `it` with `xit` (mnemonic rule: '*cross it*'): @@ -161,10 +161,10 @@ npm run unit -- -j 4 ```js ... // Using "xit" to skip specific test - xit('should work', SX(async function() { - const response = await page.goto(EMPTY_PAGE); + xit('should work', async function({server, page}) { + const response = await page.goto(server.EMPTY_PAGE); expect(response.ok).toBe(true); - })) + }) ``` - To run tests in non-headless mode: