Skip to content

Commit 366b32e

Browse files
committed
chore: cjs fix and more failing tests
1 parent 57fcc86 commit 366b32e

8 files changed

Lines changed: 94 additions & 13 deletions

File tree

‎examples/react/devtools/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@tanstack/react-devtools": "0.4.3",
13-
"@tanstack/react-form": "^1.19.2",
13+
"@tanstack/react-form": "^1.19.3",
1414
"@tanstack/react-form-devtools": "workspace:*",
1515
"react": "^19.0.0",
1616
"react-dom": "^19.0.0"

‎examples/react/field-errors-from-form-validators/tsconfig.json‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"noEmit": true,
55
"strict": true,
66
"esModuleInterop": true,
7-
"lib": ["DOM", "DOM.Iterable", "ES2020"]
7+
"lib": ["DOM", "DOM.Iterable", "ES2020"],
8+
"target": "ES2020",
9+
"module": "ESNext",
10+
"moduleResolution": "Node"
811
}
912
}

packages/react-form-devtools/tests/form-devtools.spec.ts renamed to packages/form-devtools/tests/tanstackFormDevtoolsPanel.spec.ts

File renamed without changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import '@testing-library/jest-dom/vitest'
2+
import { cleanup } from '@testing-library/react'
3+
import { afterEach } from 'vitest'
4+
5+
// https://testing-library.com/docs/react-testing-library/api#cleanup
6+
afterEach(() => cleanup())

‎packages/form-devtools/vite.config.ts‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import packageJson from './package.json'
55

66
const config = defineConfig({
77
plugins: [solid()],
8-
// test: {
9-
// name: packageJson.name,
10-
// dir: './tests',
11-
// watch: false,
12-
// environment: 'jsdom',
13-
// setupFiles: ['./tests/test-setup.ts'],
14-
// coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] },
15-
// typecheck: { enabled: true },
16-
// },
8+
test: {
9+
name: packageJson.name,
10+
dir: './tests',
11+
watch: false,
12+
environment: 'jsdom',
13+
setupFiles: ['./tests/test-setup.ts'],
14+
coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] },
15+
typecheck: { enabled: true },
16+
},
1717
})
1818

1919
export default mergeConfig(

‎packages/react-form-devtools/tests/formDevtools.spec.ts‎

Whitespace-only changes.

‎pnpm-lock.yaml‎

Lines changed: 35 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pnpm-workspace.yaml‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//: https://github.com/jsdom/cssstyle/issues/182
12
packages:
23
- 'packages/**'
34
- 'examples/angular/**'
@@ -7,24 +8,52 @@ packages:
78
- 'examples/lit/**'
89
- 'examples/svelte/**'
910
catalog:
11+
'@eslint-react/eslint-plugin': ^1.52.6
12+
'@solidjs/testing-library': ^0.8.10
13+
'@tanstack/config': 0.20.0
1014
'@tanstack/devtools-event-client': ^0.2.2
1115
'@tanstack/devtools-ui': ^0.3.1
16+
'@tanstack/react-devtools': 0.4.3
17+
'@tanstack/react-form': ^1.19.2
1218
'@tanstack/solid-store': ^0.7.3
1319
'@tanstack/store': ^0.7.4
20+
'@testing-library/jest-dom': ^6.8.0
21+
'@testing-library/react': ^16.3.0
22+
'@testing-library/user-event': ^14.6.1
23+
'@testing-library/vue': ^8.1.0
24+
'@types/node': ^24.1.0
1425
'@types/react': ^19.0.7
1526
'@types/react-dom': ^19.0.3
1627
'@vitejs/plugin-react': ^4.7.0
28+
'@vitest/coverage-istanbul': ^3.2.4
1729
arktype: ^2.1.20
1830
clsx: ^2.1.1
1931
dayjs: ^1.11.13
32+
eslint: 9.34.0
2033
eslint-plugin-react-compiler: 19.0.0-beta-ebf51a3-20250411
34+
eslint-plugin-react-hooks: ^5.2.0
2135
goober: ^2.1.16
36+
jsdom: ^26.1.0
37+
knip: ^5.63.0
38+
markdown-link-extractor: ^4.0.2
39+
nx: 21.4.1
40+
premove: ^4.0.0
41+
prettier: ^3.6.2
42+
publint: ^0.3.12
2243
react: ^19.0.0
2344
react-dom: ^19.0.0
45+
sherif: ^1.6.1
2446
solid-js: ^1.9.7
47+
tinyglobby: ^0.2.14
48+
typescript: 5.8.2
49+
typescript54: npm:typescript@5.9.2
50+
typescript55: npm:typescript@5.9.2
51+
typescript56: npm:typescript@5.9.2
52+
typescript57: npm:typescript@5.9.2
2553
valibot: ^1.1.0
2654
vite: ^7.0.6
2755
vite-plugin-solid: ^2.11.6
56+
vitest: ^3.2.4
2857
zod: ^3.25.76
2958
catalogs:
3059
conflicts_@tanstack/solid-store_h0_7_4:
@@ -35,3 +64,13 @@ catalogs:
3564
vite: ^7.1.3
3665
conflicts_vite-plugin-solid_h2_11_8:
3766
vite-plugin-solid: ^2.11.8
67+
conflicts_@tanstack/react-form_h1_19_:
68+
'@tanstack/react-form': ^1.19.
69+
conflicts_@tanstack/react-form_h1_19_3:
70+
'@tanstack/react-form': ^1.19.3
71+
conflicts_conflicts_@tanstack/react-form_h1_19__h1_19_3:
72+
'@tanstack/react-form': ^1.19.3
73+
conflicts_conflicts_@tanstack/react-form_h1_19__h1_19_2:
74+
'@tanstack/react-form': ^1.19.2
75+
overrides:
76+
cssstyle: 4.6.0

0 commit comments

Comments
 (0)