Skip to content

Commit

Permalink
chore: add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Sep 6, 2024
1 parent e6613f6 commit a64f221
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches: [main]
pull_request:
branches: [main]
branches: [main, jonas-jonas/elementsv1]
jobs:
pull_request:
timeout-minutes: 20
Expand Down Expand Up @@ -47,3 +47,8 @@ jobs:
- uses: chromaui/[email protected]
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ pnpm-lock.yaml
/playwright-report/
/playwright/.cache/
.nx
coverage/
4 changes: 2 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright © 2024 Ory Corp
// SPDX-License-Identifier: Apache-2.0

import { getJestProjects } from "@nx/jest"
import { getJestProjects, getJestProjectsAsync } from "@nx/jest"

export default {
projects: getJestProjects(),
projects: await getJestProjects(),
}
8 changes: 8 additions & 0 deletions packages/elements-react/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
"options": {
"cwd": "packages/elements-react"
}
},
"test": {
"executor": "@nx/jest:jest",
"options": {
"jestConfig": "packages/elements-react/jest.config.ts",
"coverage": true,
"coverageReporters": ["text", "cobertura"]
}
}
}
}

0 comments on commit a64f221

Please sign in to comment.