File tree Expand file tree Collapse file tree 6 files changed +35
-34
lines changed Expand file tree Collapse file tree 6 files changed +35
-34
lines changed Original file line number Diff line number Diff line change 3
3
커뮤니티의 모든 분들의 Contribution을 환영합니다.
4
4
[ 영어] ( https://github.com/Rapiders/react-hooks/tree/main/.github/CONTRIBUTING.md ) 와 한국어 중 편한 언어를 사용하면 됩니다.
5
5
6
+ ## 테스트 코드 정책
7
+
8
+ 라이브러리의 품질을 보증하기위해 다음의 정책이 적용됩니다.
9
+ 하나의 기능에 대해
10
+
11
+ 1 . branches의 coverage는 80%를 넘어야합니다. (추후 개선 100%로 변경예정)
12
+ 2 . functions의 coverage는 80%를 넘어야합니다. (추후 개선 100%로 변경예정)
13
+ 3 . lines는 반드시 100%여야합니다.
14
+
15
+ 해당 정책을 만족하지 못하는 경우 ` git push ` 가 이뤄지지 않습니다.
16
+
6
17
## Fork
7
18
8
19
1 . 기여하고 싶은 경우 우선 이 레포지토리를 fork 합니다.
9
- 2 . 작업이 완료되었다면 main 브랜치로 PR을 오픈합니다.
10
- 3 . merge 되기 위해서는 반드시 maintainer 중 한 명이 이상의 approve를 받아야 합니다.
20
+ 2 . npm install을 진행합니다.
21
+ 3 . 작업이 완료되었다면 main 브랜치로 PR을 오픈합니다.
22
+ 4 . merge 되기 위해서는 반드시 maintainer 중 한 명이 이상의 approve를 받아야 합니다.
11
23
12
24
## Issue
13
25
Original file line number Diff line number Diff line change 3
3
We welcome contribution from everyone in the community.
4
4
you can use English and [ Korean] ( https://github.com/Rapiders/react-hooks/tree/main/.github/CONTRIBUTING.ko.md )
5
5
6
+ ## Test Code Policy
7
+
8
+ To ensure the quality of the library, the following policy is applied for each feature:
9
+
10
+ 1 . Branch coverage must exceed 80%.
11
+ 2 . Function coverage must exceed 80%.
12
+ 3 . Line coverage must be 100%.
13
+
14
+ If these requirements are not met, ` git push ` will not be allowed.
15
+
6
16
## Fork
7
17
8
18
1 . If you wish to contribute, first fork this repository.
9
- 2 . Once your work is complete, open a PR to the main branch.
10
- 3 . To be merged, it must receive at least one approval from a maintainer.
19
+ 2 . npm install
20
+ 3 . Once your work is complete, open a PR to the main branch.
21
+ 4 . To be merged, it must receive at least one approval from a maintainer.
11
22
12
23
## Issue
13
24
Original file line number Diff line number Diff line change
1
+ npm run test:coverage
Original file line number Diff line number Diff line change @@ -15,4 +15,11 @@ module.exports = {
15
15
moduleNameMapper : pathsToModuleNameMapper ( compilerOptions . paths , {
16
16
prefix : '<rootDir>' ,
17
17
} ) ,
18
+ coverageThreshold : {
19
+ 'src/**/*.{ts,tsx}' : {
20
+ branches : 80 ,
21
+ functions : 80 ,
22
+ lines : 100 ,
23
+ } ,
24
+ } ,
18
25
} ;
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import useAnimation from './useAnimation/useAnimation';
3
3
import useFocusAnimation from './useFocusAnimation/useFocusAnimation' ;
4
4
import useDragIndexCarousel from './useDragIndexCarousel/useDragIndexCarousel' ;
5
5
import useCarousel from './useCarousel/useCarousel' ;
6
- import useScrollRatio from './useScrollRatio' ;
7
6
import useInterval from './useInterval/useInterval' ;
8
7
import useAfterMountEffect from './useAfterMountEffect/useAfterMountEffect' ;
9
8
import useRadio from './useRadio/useRadio' ;
@@ -19,7 +18,6 @@ export {
19
18
useFocusAnimation ,
20
19
useDragIndexCarousel ,
21
20
useCarousel ,
22
- useScrollRatio ,
23
21
useInterval ,
24
22
useAfterMountEffect ,
25
23
useRadio ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments