Commit 003e01e 1 parent 6e7dc21 commit 003e01e Copy full SHA for 003e01e
File tree 3 files changed +31
-4
lines changed
src/applications/editor/components/LinearMetadata
3 files changed +31
-4
lines changed Original file line number Diff line number Diff line change 21
21
node-version : 16
22
22
cache : " yarn"
23
23
cache-dependency-path : front/yarn.lock
24
- - run : yarn --cwd front install
25
- - run : yarn --cwd front build
24
+
25
+ - name : install dependencies
26
+ run : yarn --cwd front install
27
+
28
+ - name : run front test suite
29
+ run : yarn --cwd front test-coverage
30
+
31
+ - name : Upload coverage to Codecov
32
+ uses : codecov/codecov-action@v3
33
+ with :
34
+ # github runs PR workflows on the result of a merge commit.
35
+ # tell codecov the sha of the unmerged PR https://github.com/codecov/uploader/issues/525
36
+ override_commit : " ${{ github.event.pull_request.head.sha }}"
37
+ name : codecov
38
+ flags : front
39
+ directory : ./front/test
40
+ files : cobertura-coverage.xml
41
+ token : ${{ secrets.CODECOV_TOKEN }}
42
+ fail_ci_if_error : true
43
+ verbose : true
44
+
45
+ - name : build project
46
+ run : yarn --cwd front build
26
47
env :
27
48
CI : false
28
- - run : yarn --cwd front --passWithNoTests test
Original file line number Diff line number Diff line change 122
122
"start" : " react-scripts start" ,
123
123
"build" : " react-scripts --max_old_space_size=4096 build" ,
124
124
"test" : " react-scripts test" ,
125
+ "test-coverage" : " react-scripts test --watchAll=false --coverage --coverageDirectory=test" ,
125
126
"eject" : " react-scripts eject" ,
126
127
"lint-ts" : " eslint --ext .ts,.tsx src" ,
127
128
"generate-types" : " npx @rtk-query/codegen-openapi src/common/api/openapi-config.js" ,
151
152
}
152
153
}
153
154
]
155
+ },
156
+ "jest" : {
157
+ "coverageReporters" : [
158
+ " text" ,
159
+ " cobertura"
160
+ ]
154
161
}
155
162
}
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ function checkWrapperValidity<T = any>(
89
89
if ( newLine )
90
90
assert . equal (
91
91
Math . round ( last ( result ) ?. end || 0 ) ,
92
- Math . round ( getLineStringDistance ( newLine ) * 1000 ) ,
92
+ Math . round ( getLineStringDistance ( newLine ) ) ,
93
93
message
94
94
) ;
95
95
// Checking the continuity
You can’t perform that action at this time.
0 commit comments