@flightdev/ui 2.0.0

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 (118) hide show
  1. package/.turbo/turbo-build.log +81 -0
  2. package/.turbo/turbo-lint.log +40 -0
  3. package/.turbo/turbo-typecheck.log +4 -0
  4. package/LICENSE +21 -0
  5. package/README.md +92 -0
  6. package/TESTING.md +124 -0
  7. package/dist/adapter-MMD-iHNx.d.ts +424 -0
  8. package/dist/adapters/tier-1/angular.d.ts +60 -0
  9. package/dist/adapters/tier-1/angular.js +2 -0
  10. package/dist/adapters/tier-1/index.d.ts +7 -0
  11. package/dist/adapters/tier-1/index.js +7 -0
  12. package/dist/adapters/tier-1/qwik.d.ts +55 -0
  13. package/dist/adapters/tier-1/qwik.js +2 -0
  14. package/dist/adapters/tier-1/react.d.ts +67 -0
  15. package/dist/adapters/tier-1/react.js +2 -0
  16. package/dist/adapters/tier-1/solid.d.ts +45 -0
  17. package/dist/adapters/tier-1/solid.js +2 -0
  18. package/dist/adapters/tier-1/svelte.d.ts +48 -0
  19. package/dist/adapters/tier-1/svelte.js +2 -0
  20. package/dist/adapters/tier-1/vue.d.ts +47 -0
  21. package/dist/adapters/tier-1/vue.js +2 -0
  22. package/dist/adapters/tier-2/index.d.ts +7 -0
  23. package/dist/adapters/tier-2/index.js +7 -0
  24. package/dist/adapters/tier-2/inferno.d.ts +31 -0
  25. package/dist/adapters/tier-2/inferno.js +2 -0
  26. package/dist/adapters/tier-2/lit.d.ts +34 -0
  27. package/dist/adapters/tier-2/lit.js +2 -0
  28. package/dist/adapters/tier-2/marko.d.ts +59 -0
  29. package/dist/adapters/tier-2/marko.js +2 -0
  30. package/dist/adapters/tier-2/mithril.d.ts +31 -0
  31. package/dist/adapters/tier-2/mithril.js +2 -0
  32. package/dist/adapters/tier-2/preact.d.ts +33 -0
  33. package/dist/adapters/tier-2/preact.js +2 -0
  34. package/dist/adapters/tier-2/stencil.d.ts +52 -0
  35. package/dist/adapters/tier-2/stencil.js +2 -0
  36. package/dist/adapters/tier-3/alpine.d.ts +73 -0
  37. package/dist/adapters/tier-3/alpine.js +2 -0
  38. package/dist/adapters/tier-3/hotwire.d.ts +71 -0
  39. package/dist/adapters/tier-3/hotwire.js +2 -0
  40. package/dist/adapters/tier-3/htmx.d.ts +88 -0
  41. package/dist/adapters/tier-3/htmx.js +2 -0
  42. package/dist/adapters/tier-3/index.d.ts +7 -0
  43. package/dist/adapters/tier-3/index.js +7 -0
  44. package/dist/adapters/tier-3/petite-vue.d.ts +56 -0
  45. package/dist/adapters/tier-3/petite-vue.js +2 -0
  46. package/dist/adapters/tier-3/stimulus.d.ts +63 -0
  47. package/dist/adapters/tier-3/stimulus.js +2 -0
  48. package/dist/adapters/tier-3/vanilla.d.ts +63 -0
  49. package/dist/adapters/tier-3/vanilla.js +2 -0
  50. package/dist/chunk-2SNQ6PTM.js +217 -0
  51. package/dist/chunk-3D4XMIZI.js +136 -0
  52. package/dist/chunk-3HU6GSQ4.js +125 -0
  53. package/dist/chunk-4PZDNFL7.js +148 -0
  54. package/dist/chunk-5IBLFTYL.js +114 -0
  55. package/dist/chunk-64JZJ7OK.js +142 -0
  56. package/dist/chunk-7ZJI3QU2.js +132 -0
  57. package/dist/chunk-CE4FJHQJ.js +133 -0
  58. package/dist/chunk-DTCAUBH5.js +87 -0
  59. package/dist/chunk-NTASPOHG.js +106 -0
  60. package/dist/chunk-OI2AMQLG.js +152 -0
  61. package/dist/chunk-Q7HUE44H.js +106 -0
  62. package/dist/chunk-QH3LOWXU.js +155 -0
  63. package/dist/chunk-QIVAK6BH.js +103 -0
  64. package/dist/chunk-V34XPVGK.js +103 -0
  65. package/dist/chunk-VK7ZPMO7.js +221 -0
  66. package/dist/chunk-X6CNUW6T.js +136 -0
  67. package/dist/chunk-XTDK7ME5.js +382 -0
  68. package/dist/chunk-YFGSHW5S.js +121 -0
  69. package/dist/chunk-ZAJVSE7J.js +90 -0
  70. package/dist/core/index.d.ts +161 -0
  71. package/dist/core/index.js +2 -0
  72. package/dist/index.d.ts +103 -0
  73. package/dist/index.js +71 -0
  74. package/docs/ADAPTERS.md +946 -0
  75. package/docs/PATTERNS.md +836 -0
  76. package/package.json +229 -0
  77. package/src/adapters/tier-1/angular.ts +223 -0
  78. package/src/adapters/tier-1/index.ts +12 -0
  79. package/src/adapters/tier-1/qwik.ts +177 -0
  80. package/src/adapters/tier-1/react.ts +330 -0
  81. package/src/adapters/tier-1/solid.ts +222 -0
  82. package/src/adapters/tier-1/svelte.ts +211 -0
  83. package/src/adapters/tier-1/vue.ts +234 -0
  84. package/src/adapters/tier-2/index.ts +12 -0
  85. package/src/adapters/tier-2/inferno.ts +149 -0
  86. package/src/adapters/tier-2/lit.ts +191 -0
  87. package/src/adapters/tier-2/marko.ts +199 -0
  88. package/src/adapters/tier-2/mithril.ts +152 -0
  89. package/src/adapters/tier-2/preact.ts +133 -0
  90. package/src/adapters/tier-2/stencil.ts +214 -0
  91. package/src/adapters/tier-3/alpine.ts +218 -0
  92. package/src/adapters/tier-3/hotwire.ts +254 -0
  93. package/src/adapters/tier-3/htmx.ts +263 -0
  94. package/src/adapters/tier-3/index.ts +12 -0
  95. package/src/adapters/tier-3/petite-vue.ts +163 -0
  96. package/src/adapters/tier-3/stimulus.ts +233 -0
  97. package/src/adapters/tier-3/vanilla.ts +252 -0
  98. package/src/ambient.d.ts +310 -0
  99. package/src/core/adapter.ts +366 -0
  100. package/src/core/index.ts +56 -0
  101. package/src/core/registry.ts +518 -0
  102. package/src/core/types.ts +461 -0
  103. package/src/htmx.ts +134 -0
  104. package/src/index.ts +263 -0
  105. package/test/__mocks__/stencil-core.ts +19 -0
  106. package/test/__mocks__/stencil-hydrate.ts +15 -0
  107. package/test/adapters/tier-1.test.ts +206 -0
  108. package/test/adapters/tier-2.test.ts +175 -0
  109. package/test/adapters/tier-3.test.ts +284 -0
  110. package/test/contracts/adapter.contract.ts +293 -0
  111. package/test/core/core.test.ts +310 -0
  112. package/test/errors/error-handling.test.ts +454 -0
  113. package/test/integration/htmx.integration.test.ts +246 -0
  114. package/test/integration/react.integration.test.ts +271 -0
  115. package/test/integration/registry.integration.test.ts +308 -0
  116. package/tsconfig.json +22 -0
  117. package/tsup.config.ts +93 -0
  118. package/vitest.config.ts +101 -0
@@ -0,0 +1,81 @@
1
+
2
+ > @flightdev/ui@2.0.0 build E:\testear framework\Flight\packages\ui
3
+ > tsup
4
+
5
+ CLI Building entry: src/index.ts, src/core/index.ts, src/adapters/tier-1/angular.ts, src/adapters/tier-1/index.ts, src/adapters/tier-1/qwik.ts, src/adapters/tier-1/react.ts, src/adapters/tier-1/solid.ts, src/adapters/tier-1/svelte.ts, src/adapters/tier-1/vue.ts, src/adapters/tier-2/index.ts, src/adapters/tier-2/inferno.ts, src/adapters/tier-2/lit.ts, src/adapters/tier-2/marko.ts, src/adapters/tier-2/mithril.ts, src/adapters/tier-2/preact.ts, src/adapters/tier-2/stencil.ts, src/adapters/tier-3/alpine.ts, src/adapters/tier-3/hotwire.ts, src/adapters/tier-3/htmx.ts, src/adapters/tier-3/index.ts, src/adapters/tier-3/petite-vue.ts, src/adapters/tier-3/stimulus.ts, src/adapters/tier-3/vanilla.ts
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.5.1
8
+ CLI Using tsup config: E:\testear framework\Flight\packages\ui\tsup.config.ts
9
+ CLI Target: node20
10
+ CLI Cleaning output folder
11
+ ESM Build start
12
+ ESM dist\adapters\tier-3\alpine.js 156.00 B
13
+ ESM dist\adapters\tier-3\htmx.js 164.00 B
14
+ ESM dist\adapters\tier-3\hotwire.js 174.00 B
15
+ ESM dist\adapters\tier-3\index.js 638.00 B
16
+ ESM dist\adapters\tier-3\stimulus.js 160.00 B
17
+ ESM dist\adapters\tier-3\petite-vue.js 155.00 B
18
+ ESM dist\chunk-4PZDNFL7.js 4.15 KB
19
+ ESM dist\chunk-Q7HUE44H.js 3.03 KB
20
+ ESM dist\adapters\tier-3\vanilla.js 167.00 B
21
+ ESM dist\chunk-7ZJI3QU2.js 3.72 KB
22
+ ESM dist\chunk-CE4FJHQJ.js 3.75 KB
23
+ ESM dist\adapters\tier-2\index.js 422.00 B
24
+ ESM dist\chunk-ZAJVSE7J.js 2.42 KB
25
+ ESM dist\adapters\tier-1\vue.js 117.00 B
26
+ ESM dist\adapters\tier-2\inferno.js 129.00 B
27
+ ESM dist\adapters\tier-2\marko.js 123.00 B
28
+ ESM dist\adapters\tier-2\preact.js 126.00 B
29
+ ESM dist\adapters\tier-2\mithril.js 129.00 B
30
+ ESM dist\chunk-QIVAK6BH.js 2.83 KB
31
+ ESM dist\adapters\tier-2\lit.js 117.00 B
32
+ ESM dist\adapters\tier-2\stencil.js 129.00 B
33
+ ESM dist\chunk-YFGSHW5S.js 3.68 KB
34
+ ESM dist\chunk-V34XPVGK.js 2.76 KB
35
+ ESM dist\chunk-DTCAUBH5.js 2.21 KB
36
+ ESM dist\adapters\tier-1\angular.js 129.00 B
37
+ ESM dist\chunk-OI2AMQLG.js 4.29 KB
38
+ ESM dist\chunk-5IBLFTYL.js 2.80 KB
39
+ ESM dist\core\index.js 228.00 B
40
+ ESM dist\adapters\tier-1\qwik.js 120.00 B
41
+ ESM dist\chunk-3HU6GSQ4.js 3.89 KB
42
+ ESM dist\adapters\tier-1\index.js 412.00 B
43
+ ESM dist\index.js 2.47 KB
44
+ ESM dist\adapters\tier-1\react.js 123.00 B
45
+ ESM dist\chunk-QH3LOWXU.js 3.96 KB
46
+ ESM dist\adapters\tier-1\solid.js 123.00 B
47
+ ESM dist\chunk-3D4XMIZI.js 3.82 KB
48
+ ESM dist\adapters\tier-1\svelte.js 126.00 B
49
+ ESM dist\chunk-NTASPOHG.js 2.95 KB
50
+ ESM dist\chunk-VK7ZPMO7.js 6.50 KB
51
+ ESM dist\chunk-64JZJ7OK.js 3.82 KB
52
+ ESM dist\chunk-X6CNUW6T.js 3.56 KB
53
+ ESM dist\chunk-2SNQ6PTM.js 5.54 KB
54
+ ESM dist\chunk-XTDK7ME5.js 10.12 KB
55
+ ESM ⚡️ Build success in 315ms
56
+ DTS Build start
57
+ DTS ⚡️ Build success in 19743ms
58
+ DTS dist\adapters\tier-1\index.d.ts 548.00 B
59
+ DTS dist\adapters\tier-2\index.d.ts 563.00 B
60
+ DTS dist\adapters\tier-3\index.d.ts 806.00 B
61
+ DTS dist\index.d.ts 3.26 KB
62
+ DTS dist\adapters\tier-1\angular.d.ts 1.87 KB
63
+ DTS dist\adapters\tier-1\qwik.d.ts 1.67 KB
64
+ DTS dist\adapters\tier-1\react.d.ts 2.27 KB
65
+ DTS dist\adapters\tier-1\solid.d.ts 1.50 KB
66
+ DTS dist\adapters\tier-1\svelte.d.ts 1.41 KB
67
+ DTS dist\adapters\tier-1\vue.d.ts 1.57 KB
68
+ DTS dist\adapters\tier-2\inferno.d.ts 1.06 KB
69
+ DTS dist\adapters\tier-2\lit.d.ts 1.19 KB
70
+ DTS dist\adapters\tier-2\marko.d.ts 2.01 KB
71
+ DTS dist\adapters\tier-2\mithril.d.ts 1.05 KB
72
+ DTS dist\adapters\tier-2\preact.d.ts 1.11 KB
73
+ DTS dist\adapters\tier-2\stencil.d.ts 1.65 KB
74
+ DTS dist\adapters\tier-3\alpine.d.ts 2.23 KB
75
+ DTS dist\adapters\tier-3\hotwire.d.ts 2.24 KB
76
+ DTS dist\adapters\tier-3\htmx.d.ts 2.59 KB
77
+ DTS dist\adapters\tier-3\petite-vue.d.ts 1.73 KB
78
+ DTS dist\adapters\tier-3\stimulus.d.ts 1.95 KB
79
+ DTS dist\adapters\tier-3\vanilla.d.ts 2.06 KB
80
+ DTS dist\core\index.d.ts 4.54 KB
81
+ DTS dist\adapter-MMD-iHNx.d.ts 12.96 KB
@@ -0,0 +1,40 @@
1
+
2
+ > @flight-framework/ui@2.0.0 lint E:\testear framework\Flight\packages\ui
3
+ > eslint src test
4
+
5
+
6
+ E:\testear framework\Flight\packages\ui\src\adapters\tier-1\angular.ts
7
+ 78:21 warning 'provideClientHydration' is assigned a value but never used @typescript-eslint/no-unused-vars
8
+
9
+ E:\testear framework\Flight\packages\ui\src\adapters\tier-1\solid.ts
10
+ 69:15 warning 'App' is assigned a value but never used @typescript-eslint/no-unused-vars
11
+ 103:27 warning 'App' is assigned a value but never used @typescript-eslint/no-unused-vars
12
+
13
+ E:\testear framework\Flight\packages\ui\src\adapters\tier-3\hotwire.ts
14
+ 95:13 warning 'turboFrames' is assigned a value but never used @typescript-eslint/no-unused-vars
15
+ 96:13 warning 'turboStreams' is assigned a value but never used @typescript-eslint/no-unused-vars
16
+
17
+ E:\testear framework\Flight\packages\ui\src\core\adapter.ts
18
+ 23:5 warning 'DEFAULT_CAPABILITIES' is defined but never used @typescript-eslint/no-unused-vars
19
+
20
+ E:\testear framework\Flight\packages\ui\test\__mocks__\stencil-core.ts
21
+ 8:28 warning 'target' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars
22
+ 8:45 warning 'key' is defined but never used. Allowed unused args must match /^_/u @typescript-eslint/no-unused-vars
23
+
24
+ E:\testear framework\Flight\packages\ui\test\adapters\tier-1.test.ts
25
+ 8:32 warning 'vi' is defined but never used @typescript-eslint/no-unused-vars
26
+
27
+ E:\testear framework\Flight\packages\ui\test\core\core.test.ts
28
+ 13:15 warning 'AdapterCapabilities' is defined but never used @typescript-eslint/no-unused-vars
29
+
30
+ E:\testear framework\Flight\packages\ui\test\errors\error-handling.test.ts
31
+ 10:44 warning 'vi' is defined but never used @typescript-eslint/no-unused-vars
32
+
33
+ E:\testear framework\Flight\packages\ui\test\integration\react.integration.test.ts
34
+ 12:40 warning 'RenderContext' is defined but never used @typescript-eslint/no-unused-vars
35
+
36
+ E:\testear framework\Flight\packages\ui\test\integration\registry.integration.test.ts
37
+ 10:32 warning 'beforeEach' is defined but never used @typescript-eslint/no-unused-vars
38
+
39
+ ✖ 13 problems (0 errors, 13 warnings)
40
+
@@ -0,0 +1,4 @@
1
+
2
+ > @flight-framework/ui@2.0.0 typecheck E:\testear framework\Flight\packages\ui
3
+ > tsc --noEmit
4
+
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-2026 Flight Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,92 @@
1
+ # @flight-framework/ui
2
+
3
+ Headless UI components for Flight Framework. Accessible, unstyled primitives for building design systems.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @flight-framework/ui
9
+ ```
10
+
11
+ ## Components
12
+
13
+ ### Dialog (Modal)
14
+
15
+ ```tsx
16
+ import { Dialog, DialogTrigger, DialogContent, DialogTitle } from '@flight-framework/ui/react';
17
+
18
+ function App() {
19
+ return (
20
+ <Dialog>
21
+ <DialogTrigger>Open Modal</DialogTrigger>
22
+ <DialogContent>
23
+ <DialogTitle>Confirm Action</DialogTitle>
24
+ <p>Are you sure you want to continue?</p>
25
+ </DialogContent>
26
+ </Dialog>
27
+ );
28
+ }
29
+ ```
30
+
31
+ ### Dropdown Menu
32
+
33
+ ```tsx
34
+ import { Menu, MenuTrigger, MenuContent, MenuItem } from '@flight-framework/ui/react';
35
+
36
+ function App() {
37
+ return (
38
+ <Menu>
39
+ <MenuTrigger>Options</MenuTrigger>
40
+ <MenuContent>
41
+ <MenuItem onSelect={() => {}}>Edit</MenuItem>
42
+ <MenuItem onSelect={() => {}}>Delete</MenuItem>
43
+ </MenuContent>
44
+ </Menu>
45
+ );
46
+ }
47
+ ```
48
+
49
+ ### Tabs
50
+
51
+ ```tsx
52
+ import { Tabs, TabList, Tab, TabPanel } from '@flight-framework/ui/react';
53
+
54
+ function App() {
55
+ return (
56
+ <Tabs defaultValue="tab1">
57
+ <TabList>
58
+ <Tab value="tab1">Tab 1</Tab>
59
+ <Tab value="tab2">Tab 2</Tab>
60
+ </TabList>
61
+ <TabPanel value="tab1">Content 1</TabPanel>
62
+ <TabPanel value="tab2">Content 2</TabPanel>
63
+ </Tabs>
64
+ );
65
+ }
66
+ ```
67
+
68
+ ## Available Components
69
+
70
+ - Dialog / Modal
71
+ - Dropdown Menu
72
+ - Popover
73
+ - Tooltip
74
+ - Tabs
75
+ - Accordion
76
+ - Collapsible
77
+ - Switch / Toggle
78
+ - Slider
79
+ - Select / Combobox
80
+ - Toast / Notifications
81
+
82
+ ## Features
83
+
84
+ - Fully accessible (WAI-ARIA)
85
+ - Keyboard navigation
86
+ - Focus management
87
+ - Unstyled (bring your own CSS)
88
+ - TypeScript support
89
+
90
+ ## License
91
+
92
+ MIT
package/TESTING.md ADDED
@@ -0,0 +1,124 @@
1
+ # @flight-framework/ui Testing Guide
2
+
3
+ This document describes how to run tests, add new tests, and maintain coverage for the UI package.
4
+
5
+ ## Quick Start
6
+
7
+ ```bash
8
+ # Run all tests
9
+ pnpm --filter @flight-framework/ui test
10
+
11
+ # Run with coverage
12
+ pnpm --filter @flight-framework/ui test:coverage
13
+
14
+ # Run specific test file
15
+ pnpm --filter @flight-framework/ui test -- --testPathPattern="react"
16
+
17
+ # Watch mode (development)
18
+ pnpm --filter @flight-framework/ui test:watch
19
+ ```
20
+
21
+ ## Test Structure
22
+
23
+ ```
24
+ packages/ui/test/
25
+ ├── __mocks__/ # Framework mocks
26
+ ├── adapters/ # Framework-specific adapter tests
27
+ ├── contracts/ # Interface contract tests
28
+ ├── core/ # Core functionality tests
29
+ ├── errors/ # Error handling tests
30
+ └── integration/ # Integration tests
31
+ ├── react.integration.test.ts
32
+ ├── htmx.integration.test.ts
33
+ └── registry.integration.test.ts
34
+ ```
35
+
36
+ ## Coverage Requirements
37
+
38
+ | Metric | Threshold |
39
+ |--------|-----------|
40
+ | Statements | 60% |
41
+ | Branches | 50% |
42
+ | Functions | 60% |
43
+ | Lines | 60% |
44
+
45
+ Tests will fail if coverage drops below these thresholds.
46
+
47
+ ## Adding New Adapter Tests
48
+
49
+ When creating a new adapter, add tests in `test/adapters/`:
50
+
51
+ ```typescript
52
+ // test/adapters/my-framework.test.ts
53
+ import { describe, it, expect } from 'vitest';
54
+ import { myFramework } from '../../src/adapters/my-framework.js';
55
+
56
+ describe('MyFramework Adapter', () => {
57
+ it('has correct identity', () => {
58
+ const adapter = myFramework();
59
+ expect(adapter.id).toBe('my-framework');
60
+ expect(adapter.tier).toBe('tier-2');
61
+ });
62
+
63
+ it('renders to string', async () => {
64
+ const adapter = myFramework();
65
+ const result = await adapter.renderToString({
66
+ component: () => '<div>Test</div>',
67
+ props: {},
68
+ });
69
+ expect(result.html).toContain('Test');
70
+ });
71
+ });
72
+ ```
73
+
74
+ ## Integration Tests
75
+
76
+ Integration tests verify real-world scenarios across the adapter system:
77
+
78
+ - **React**: SSR, hydration, streaming, islands
79
+ - **HTMX**: HTML-first rendering, hx-* attributes
80
+ - **Registry**: Dynamic loading, capability queries, tier filtering
81
+
82
+ ## CI/CD Integration
83
+
84
+ Tests run automatically on:
85
+ - Push to `main` or `develop`
86
+ - Pull requests affecting `packages/ui/**`
87
+
88
+ Coverage reports upload to Codecov on Node 20 builds.
89
+
90
+ ## Mocking Framework Dependencies
91
+
92
+ External frameworks are mocked to avoid installation:
93
+
94
+ ```typescript
95
+ // vitest.config.ts
96
+ build: {
97
+ rollupOptions: {
98
+ external: ['react', 'vue', 'svelte', ...]
99
+ }
100
+ }
101
+ ```
102
+
103
+ Add mocks in `test/__mocks__/` for frameworks that need custom mock behavior.
104
+
105
+ ## Common Commands
106
+
107
+ | Command | Description |
108
+ |---------|-------------|
109
+ | `pnpm test` | Run all tests once |
110
+ | `pnpm test:coverage` | Run with coverage report |
111
+ | `pnpm test:watch` | Watch mode for development |
112
+ | `pnpm test -- --reporter=verbose` | Verbose output |
113
+
114
+ ## Troubleshooting
115
+
116
+ **Tests hanging**: Check for unhandled async operations or increase timeout:
117
+ ```typescript
118
+ // vitest.config.ts
119
+ testTimeout: 15000 // 15 seconds
120
+ ```
121
+
122
+ **Coverage too low**: Focus on untested branches and edge cases in `src/core/` and `src/adapters/`.
123
+
124
+ **Mock issues**: Ensure framework mocks return expected structure per `UIAdapterV2` interface.