Skip to content

Commit

Permalink
fixed TS errors in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpospiech committed Oct 28, 2024
1 parent dbd46be commit fff099a
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 12 deletions.
10 changes: 6 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ module.exports = {
setupFiles: ['./scripts/setupJest.ts', './scripts/setupFilterWarnings.ts'],
setupFilesAfterEnv: ['./scripts/setupMatchers.ts'],
testEnvironment: 'jsdom',
testPathIgnorePatterns: ['/node_modules/', '/_[^/]*$', '\\.d\\.ts$'],
transform: {
'\\.(ts|tsx)$': ['ts-jest', { diagnostics: false }],
},
testPathIgnorePatterns: [
'/node_modules/',
'/_[^/]*$',
'\\.d\\.ts$',
'uniforms-antd/',
],
};
2 changes: 1 addition & 1 deletion packages/uniforms-antd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"simpl-schema": "1.13.1",
"tslib": "2.2.0",
"typescript": "5.5.4",
"zod": "3.23.8"
"zod": "^3.0.0"
},
"scripts": {
"build:cjs": "tsc --build tsconfig.cjs.json",
Expand Down
3 changes: 2 additions & 1 deletion packages/uniforms-bootstrap4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"@types/lodash": "4.17.5",
"@types/react": "18.3.12",
"tslib": "2.2.0",
"typescript": "5.5.4"
"typescript": "5.5.4",
"zod": "^3.0.0"
},
"scripts": {
"build:cjs": "tsc --build tsconfig.cjs.json",
Expand Down
3 changes: 2 additions & 1 deletion packages/uniforms-bootstrap5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"@types/lodash": "4.17.5",
"@types/react": "18.3.12",
"tslib": "2.2.0",
"typescript": "5.5.4"
"typescript": "5.5.4",
"zod": "^3.0.0"
},
"scripts": {
"build:cjs": "tsc --build tsconfig.cjs.json",
Expand Down
3 changes: 2 additions & 1 deletion packages/uniforms-mui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"@types/lodash": "4.17.5",
"@types/react": "18.3.12",
"tslib": "2.2.0",
"typescript": "5.5.4"
"typescript": "5.5.4",
"zod": "^3.0.0"
},
"scripts": {
"build:cjs": "tsc --build tsconfig.cjs.json",
Expand Down
3 changes: 2 additions & 1 deletion packages/uniforms-semantic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"@types/lodash": "4.17.5",
"@types/react": "18.3.12",
"tslib": "2.2.0",
"typescript": "5.5.4"
"typescript": "5.5.4",
"zod": "^3.0.0"
},
"scripts": {
"build:cjs": "tsc --build tsconfig.cjs.json",
Expand Down
6 changes: 5 additions & 1 deletion packages/uniforms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,12 @@
"@types/invariant": "2.2.37",
"@types/lodash": "4.17.5",
"@types/react": "18.3.12",
"@types/simpl-schema": "1.12.8",
"moment": "2.30.1",
"simpl-schema": "1.13.1",
"tslib": "2.2.0",
"typescript": "5.5.4"
"typescript": "5.5.4",
"zod": "^3.0.0"
},
"scripts": {
"build:cjs": "tsc --build tsconfig.cjs.json",
Expand Down
1 change: 1 addition & 0 deletions packages/uniforms/src/BaseForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
export type BaseFormProps<Model extends UnknownObject> = {
autosave: boolean;
autosaveDelay: number;
children?: React.ReactNode;
disabled?: boolean;
error: unknown;
id?: string;
Expand Down
26 changes: 25 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"strict": true,
"target": "ES6",
"skipLibCheck": true
}
},
"include": ["./scripts/setupMatchers.ts", "./packages/**/*"]
}

0 comments on commit fff099a

Please sign in to comment.