File tree Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 152
152
"tsc-alias" : " 1.8.10" ,
153
153
"typedoc" : " ^0.26.2" ,
154
154
"typedoc-plugin-markdown" : " ^4.1.0" ,
155
- "typescript" : " * " ,
155
+ "typescript" : " ^5.4.5 " ,
156
156
"vite" : " ^5.3.1" ,
157
157
"vite-tsconfig-paths" : " ^4.3.2" ,
158
158
"yarn-deduplicate" : " ^6.0.2"
169
169
"strip-ansi" : " ^6.0.1" ,
170
170
"string-width" : " ^4.2.2" ,
171
171
"wrap-ansi" : " ^7.0.0" ,
172
- "@typescript-eslint/utils" : " 6.13.0" ,
173
172
"@babel/highlight" : " 7.24.1 "
174
173
},
175
174
"bugs" : {
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ function backspace(element) {
56
56
57
57
const writeText = jest . fn ( ) ;
58
58
59
+ // eslint-disable-next-line n/no-unsupported-features/node-builtins
59
60
Object . assign ( navigator , {
60
61
clipboard : {
61
62
writeText,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as React from 'react';
3
3
4
4
import { axe } from 'jest-axe' ;
5
5
6
- import { InputContentPosition , InputState } from '@/components/input/types' ;
6
+ import { FormatNumber , InputContentPosition , InputState } from '@/components/input/types' ;
7
7
import { renderProvider } from '@/tests/renderProvider/renderProvider.utility' ;
8
8
import { POSITIONS } from '@/types/positions' ;
9
9
@@ -28,7 +28,7 @@ const format = {
28
28
style : 'decimal' ,
29
29
maximumFractionDigits : 3 ,
30
30
minimumFractionDigits : 1 ,
31
- } ;
31
+ } as FormatNumber ;
32
32
33
33
describe ( 'New Input Currency Component' , ( ) => {
34
34
test ( 'Should render InputCurrency component' , async ( ) => {
Original file line number Diff line number Diff line change 1
1
import { act , renderHook } from '@testing-library/react-hooks' ;
2
2
import React , { ChangeEvent } from 'react' ;
3
3
4
+ import { FormatNumber } from '@/components' ;
4
5
import * as validationsProvider from '@/provider/validations/validationsProvider' ;
5
6
6
7
import { useInput } from '../useInput' ;
7
8
8
9
describe ( 'useInput Hook' , ( ) => {
9
10
it ( 'useInput - on internal change should call parent onChange' , ( ) => {
10
11
const onChange = jest . fn ( ) ;
11
- const formatNumber = { style : 'decimal' } ;
12
+ const formatNumber = { style : 'decimal' } as FormatNumber ;
12
13
const ref = React . createRef < HTMLInputElement | undefined > ( ) ;
13
14
const currentValue = '123234' ;
14
15
const regex = new RegExp ( '^[0-9]*$' ) ;
@@ -43,7 +44,7 @@ describe('useInput Hook', () => {
43
44
} ) ;
44
45
it ( 'useInput - on internal blur should call parent onBlur' , ( ) => {
45
46
const onBlur = jest . fn ( ) ;
46
- const formatNumber = { style : 'decimal' } ;
47
+ const formatNumber = { style : 'decimal' } as FormatNumber ;
47
48
const { result } = renderHook ( ( ) => useInput ( { onBlur, formatNumber } ) ) ;
48
49
49
50
act ( ( ) => {
Original file line number Diff line number Diff line change 9
9
"baseUrl" : " ./src" ,
10
10
"paths" : {
11
11
"@/*" : [" ./*" ],
12
- "fixtures/*" : [" ./__fixtures__/*" ],
12
+ "fixtures/*" : [" ./__fixtures__/*" ]
13
13
},
14
14
"typeRoots" : [" src/types" , " node_modules/@types" ],
15
15
"types" : [" jest" ],
22
22
"strict" : true ,
23
23
"noImplicitAny" : false ,
24
24
"plugins" : [],
25
- "skipLibCheck" : true ,
25
+ "skipLibCheck" : true
26
26
},
27
- "exclude" : [],
28
- "references" : [{ "path" : " ./tsconfig.node.json" }],
27
+ "exclude" : [" ./vite.config.ts " ],
28
+ "references" : [{ "path" : " ./tsconfig.node.json" }]
29
29
}
You can’t perform that action at this time.
0 commit comments