@cdx-ui/components 0.0.1-alpha.28 → 0.0.1-alpha.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -3
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -35,7 +35,7 @@ Component stories live in [`apps/storybook`](../../apps/storybook/).
35
35
 
36
36
  ## Testing
37
37
 
38
- Tests live in [`__tests__/`](./__tests__/). **Jest** loads the repo-root **`jest.config.js`**, which defines **dual** **`projects`** (**`rntl`** + **`axe`**). See **[docs/internal/testing.md](../../docs/internal/testing.md)**.
38
+ Tests live in [`__tests__/`](./__tests__/). **Jest** uses the repo-root **`jest.config.js`** with **two projects**: **`rntl`** (jest-expo native + **`@testing-library/react-native`**) for `*.test.tsx`, and **`axe`** (jest-expo web + jsdom + **`@testing-library/react`** + **`jest-axe`**) for `*.axe.test.tsx`.
39
39
 
40
40
  ```bash
41
41
  # From monorepo root
@@ -46,6 +46,7 @@ pnpm test:all
46
46
 
47
47
  Production types use `tsconfig.json`; tests use `tsconfig.test.json`.
48
48
 
49
- **Authoring:** See **[docs/internal/testing.md](../../docs/internal/testing.md)** (file naming, RNTL vs DOM suites, `fireEvent.press` vs `fireEvent.click`).
49
+ **Authoring:** See **[docs/testing.md](../../docs/testing.md)** and **[docs/internal/testing.md](../../docs/internal/testing.md)** (RNTL vs DOM, `fireEvent.press` vs `fireEvent.click`, file naming).
50
50
 
51
- **Ad-hoc Jest** (from `packages/components`): `pnpm exec jest --config ../../jest.config.js` — with dual **`projects`**, add **`--selectProjects axe`** or **`rntl`**.
51
+ **A11y-only ad-hoc** (from `packages/components`):
52
+ `pnpm exec jest --config ../../jest.config.js --testNamePattern="a11y"`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdx-ui/components",
3
- "version": "0.0.1-alpha.28",
3
+ "version": "0.0.1-alpha.29",
4
4
  "main": "lib/commonjs/index.js",
5
5
  "module": "lib/module/index.js",
6
6
  "react-native": "src/index.ts",
@@ -65,9 +65,9 @@
65
65
  "@gorhom/bottom-sheet": "^5.2.6",
66
66
  "class-variance-authority": "^0.7.1",
67
67
  "uniwind": "1.4.1",
68
- "@cdx-ui/utils": "0.0.1-alpha.28",
69
- "@cdx-ui/icons": "0.0.1-alpha.28",
70
- "@cdx-ui/primitives": "0.0.1-alpha.28"
68
+ "@cdx-ui/primitives": "0.0.1-alpha.29",
69
+ "@cdx-ui/utils": "0.0.1-alpha.29",
70
+ "@cdx-ui/icons": "0.0.1-alpha.29"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@types/react": "*",