Skip to content

Commit 6645d71

Browse files
authored
Update 2-tests.md
Clarifying that Jest integration is client-side only
1 parent 5f7def9 commit 6645d71

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/homepage/content/docs/2-tests.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ description: 'CodeSandbox has a native integration with Jest Tests for running t
88

99
Jest is a zero configuration test runner that allows you easily write JavaScript tests without setting anything up. For more info on Jest you can look [here](https://facebook.github.io/jest/).
1010

11-
## How to use Jest in CodeSandbox
11+
## How to use Jest in CodeSandbox Client Sandboxes
1212

13-
You can run Jest tests by creating files that end with `.test.js`, `.spec.js`, `.test.ts(x)` and `.spec.js(x)`. We will automatically detect these test files and show the results in the bottom bar.
13+
In Client Sandboxes you can run Jest tests by creating files that end with `.test.js`, `.spec.js`, `.test.ts(x)` and `.spec.js(x)`. We will automatically detect these test files and show the results in the bottom bar.
14+
15+
In Container Sandboxes you can still use Jest (or whichever test framework you want), but we don't auto-detect these and you'd need to set it up yourself as you normally would.
1416

1517
![Test Bottom](./images/jest-tests.png)
1618

0 commit comments

Comments
 (0)