mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
change coverage commands
This commit is contained in:
parent
a3b2539b4f
commit
cbaf700a7a
4
.github/workflows/test.lint.code.yml
vendored
4
.github/workflows/test.lint.code.yml
vendored
@ -9,7 +9,7 @@ jobs:
|
||||
name: Detect File Changes - frontend-test-lint-code
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
frontend-test-lint-code: ${{ steps.changes.outputs.frontend-test-lint-code }}
|
||||
changes: ${{ steps.changes.outputs.frontend-test-lint-code }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3.3.0
|
||||
|
||||
@ -22,7 +22,7 @@ jobs:
|
||||
list-files: shell
|
||||
|
||||
lint:
|
||||
if: needs.files-changed.outputs.frontend-test-lint-code == 'true'
|
||||
if: needs.files-changed.outputs.changes == 'true'
|
||||
name: Lint - Frontend
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
4
.github/workflows/test.unit.code.yml
vendored
4
.github/workflows/test.unit.code.yml
vendored
@ -9,7 +9,7 @@ jobs:
|
||||
name: Detect File Changes - frontend-test-unit-code
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
frontend-test-unit-code: ${{ steps.changes.outputs.frontend-test-unit-code }}
|
||||
changes: ${{ steps.changes.outputs.frontend-test-unit-code }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3.3.0
|
||||
|
||||
@ -22,7 +22,7 @@ jobs:
|
||||
list-files: shell
|
||||
|
||||
unit:
|
||||
if: needs.files-changed.outputs.frontend-test-unit-code == 'true'
|
||||
if: needs.files-changed.outputs.changes == 'true'
|
||||
name: Unit - Frontend
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
17
README.md
17
README.md
@ -41,8 +41,8 @@ The following commands are available:
|
||||
| `npm run test:lint` | Run all linters |
|
||||
| `npm run test:lint:eslint` | Run linter eslint |
|
||||
| `npm run test:lint:remark` | Run linter remark |
|
||||
| `npm run test:unit` | Run all unit tests in watch mode |
|
||||
| `npm run test:unit:coverage` | Run all unit tests and generate coverage report |
|
||||
| `npm run test:unit` | Run all unit tests and generate coverage report |
|
||||
| `npm run test:unit:dev` | Run all unit tests in watch mode |
|
||||
| `npm test` | Run all tests & linters |
|
||||
| **Storybook** | |
|
||||
| `npm run storybook` | Run Storybook |
|
||||
@ -76,20 +76,11 @@ The following endpoints are provided given the right command is executed or all
|
||||
|
||||
## TODO
|
||||
|
||||
- [x] vite
|
||||
- [x] vike
|
||||
- [x] vue3
|
||||
- [x] vuetify
|
||||
- [x] pinia store
|
||||
- [x] storybook
|
||||
- [x] eslint
|
||||
- [x] vitest
|
||||
- [x] vue-i18n
|
||||
- [x] docker
|
||||
- [x] vuepress
|
||||
- [ ] figma
|
||||
- [ ] chromatic
|
||||
- [ ] github actions
|
||||
- [ ] lint locales
|
||||
- [ ] zähler -> pinia
|
||||
|
||||
## Known Problems
|
||||
|
||||
|
||||
@ -43,9 +43,9 @@
|
||||
"test:lint": "npm run test:lint:eslint && npm run test:lint:remark",
|
||||
"test:lint:eslint": "eslint --ext .vue,.ts,.tsx,.js,.jsx,.json,.yml,.yaml --max-warnings 0 --ignore-path .gitignore .",
|
||||
"test:lint:remark": "remark . --quiet --frail",
|
||||
"test:unit": "vitest",
|
||||
"test:unit:coverage": "npm run test:unit -- run --coverage",
|
||||
"test": "npm run test:lint && npm run test:unit:coverage",
|
||||
"test:unit": "npm run test:unit -- run --coverage",
|
||||
"test:unit:dev": "vitest",
|
||||
"test": "npm run test:lint && npm run test:unit",
|
||||
"docs:dev": "vuepress dev .",
|
||||
"docs:build": "vuepress build ."
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user