Skip to content

Commit 2daa3b6

Browse files
committed
chore: rename file to make it more descriptive
1 parent 17d9487 commit 2daa3b6

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The dev server runs at `http://localhost:8080`. Pages are served from `pages/<co
2525

2626
For component structure, props, events, and refs, see docs/COMPONENT_CONVENTIONS.md.
2727
For design tokens, CSS rules, and RTL support, see docs/STYLING.md.
28-
For running tests and configs, see docs/TESTING.md.
28+
For running tests and configs, see docs/RUNNING_TESTS.md.
2929
For writing tests and test utils, see docs/WRITING_TESTS.md.
3030
For prettier, stylelint, and eslint (`npm run lint`), see docs/CODE_STYLE.md.
3131
For dev/test pages and running in the browser, see docs/DEV_PAGES.md.

docs/RUNNING_TESTS.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Running Tests
2+
3+
## Quick Reference
4+
5+
```
6+
npm test # all tests
7+
npm run test:unit # unit + build-tool tests
8+
npm run test:integ # integration tests (starts dev server automatically)
9+
npm run test:motion # motion tests (starts dev server automatically)
10+
npm run test:a11y # accessibility tests
11+
```
12+
13+
The npm scripts use gulp tasks that handle env vars (`TZ=UTC`, `NODE_OPTIONS=--experimental-vm-modules`) and dev server lifecycle automatically.
14+
15+
## Targeting Specific Files
16+
17+
Call jest directly with the appropriate config:
18+
19+
```
20+
# Unit
21+
TZ=UTC node_modules/.bin/jest -c jest.unit.config.js src/button/__tests__/button.test.tsx
22+
23+
# Integration (requires dev server running via `npm start`)
24+
NODE_OPTIONS=--experimental-vm-modules node_modules/.bin/jest -c jest.integ.config.js src/input/__integ__/
25+
26+
# Motion (requires dev server running via `npm start`)
27+
NODE_OPTIONS=--experimental-vm-modules node_modules/.bin/jest -c jest.motion.config.js src/flashbar/__motion__/
28+
```
29+
30+
## Updating Snapshots
31+
32+
```
33+
TZ=UTC node_modules/.bin/jest -u -c jest.unit.config.js src/__tests__/snapshot-tests/
34+
```

0 commit comments

Comments
 (0)