You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -247,7 +247,7 @@ There are also additional rules added to enforce code style. Those being:
247
247
248
248
## Test Guidelines
249
249
250
-
This project is tested using the [Jest](https://jestjs.io/docs/getting-started) framework, [React Testing Library](https://testing-library.com/docs/react-testing-library/intro), and the [Mock Service Worker](https://mswjs.io/docs/) library.
250
+
This project is tested using the [Vitest](https://vitest.dev/guide/) framework, [React Testing Library](https://testing-library.com/docs/react-testing-library/intro), and the [Mock Service Worker](https://mswjs.io/docs/) library.
251
251
252
252
All UI contributions must also include a new test or update an existing testin order to maintain code coverage.
253
253
@@ -260,6 +260,19 @@ npm run test
260
260
261
261
These tests will also be run in our CI when a PR is opened.
262
262
263
+
Note that `testing-library` DOM printout is currently disabled forall tests by the following configurationin`src/test/setup.ts`:
264
+
```typescript
265
+
configure({
266
+
getElementError: (message: string) => {
267
+
const error = new Error(message);
268
+
error.name = 'TestingLibraryElementError';
269
+
error.stack = '';
270
+
return error;
271
+
},
272
+
});
273
+
```
274
+
If you'd like to see the stack printed out you can either temporarily disable the configuration or generate a [Testing Playground](https://testing-playground.com/) link by adding `screen.logTestingPlaygroundURL()` to your test.
275
+
263
276
### Using MSW data in development
264
277
265
278
If you want to develop in environment with mocked data, run the command `npm run stage-beta:msw`.
0 commit comments