Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

front: test coverage #2493

Merged
merged 12 commits into from
Dec 6, 2022
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/front.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,5 @@ jobs:
cache: "yarn"
cache-dependency-path: front/yarn.lock
- run: yarn --cwd front install
- run: yarn --cwd front test-coverage
- run: yarn --cwd front build
env:
CI: false
- run: yarn --cwd front --passWithNoTests test
3 changes: 2 additions & 1 deletion front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@
"compile": "tsc -b",
"start": "react-scripts start",
"build": "react-scripts --max_old_space_size=4096 build",
"test": "react-scripts test",
"test": "react-scripts test --watchAll=false",
"test-coverage": "react-scripts test --watchAll=false --coverage",
"eject": "react-scripts eject",
"lint-ts": "eslint --ext .ts,.tsx src",
"generate-types": "npx @rtk-query/codegen-openapi src/common/api/openapi-config.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function checkWrapperValidity<T = any>(
if (newLine)
assert.equal(
Math.round(last(result)?.end || 0),
Math.round(getLineStringDistance(newLine) * 1000),
Math.round(getLineStringDistance(newLine)),
message
);
// Checking the continuity
Expand Down