Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
appare45 committed Feb 16, 2025
1 parent a96b97f commit 5501007
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
- main
- develop

permissions:
contents: read
pull-requests: write

jobs:
prettier:
runs-on: ubuntu-latest
Expand Down
9 changes: 6 additions & 3 deletions vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ export default defineConfig({
plugins: [tsconfigPaths(), react(), stubNextAssetImport()],
test: {
environment: "jsdom",
include: ["./src/**/*.{test,spec}.?(c|m)[jt]s?(x)"],
setupFiles: ["./src/helpers/storybook-setup.ts"],
// GitHub Actionsでカバレッジレポートを出すのに使っています
// https://github.com/davelosert/vitest-coverage-report-action?tab=readme-ov-file#usage
reporters: process.env.GITHUB_ACTIONS ? ["dot", "github-actions", "json-summary", "json"] : ["dot"],
reporters: process.env.GITHUB_ACTIONS ? ["github-actions"] : ["dot"],
coverage: {
// https://github.com/davelosert/vitest-coverage-report-action?tab=readme-ov-file#usage
reporter: process.env.GITHUB_ACTIONS && ["json-summary", "json"],
},
},
});

Expand Down

0 comments on commit 5501007

Please sign in to comment.