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

カバレッジしきい値 #859

Closed
github-actions bot opened this issue Nov 2, 2022 · 1 comment
Closed

カバレッジしきい値 #859

github-actions bot opened this issue Nov 2, 2022 · 1 comment
Assignees
Labels

Comments

@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2022

vitest-dev/vitest#1241

// TODO カバレッジしきい値

/// <reference types="vitest" />
import { defineConfig } from "vite";
import { configDefaults } from "vitest/config";

import react from "@vitejs/plugin-react";
import path from "path";

export default defineConfig({
  /**
   * https://github.com/tajo/ladle/issues/100#issuecomment-1192413254
   */
  define: {
    "process.env": process.env,
  },
  // @ts-expect-error -- ???
  plugins: [react()],
  test: {
    environment: "jsdom",
    exclude: [...configDefaults.exclude, "snapshot/snapshot.test.ts"],
    coverage: {
      all: true,
      include: ["src/**/*.{ts,tsx}"],
      exclude: [
        "**/*.stories.tsx",
        "**/*.gql.generated.ts",
        "**/*.gql.ts",
        "**/dao.ts",
        "src/infra/graphql/types.ts",
        "src/ui/provider/Wrapper.tsx",
        "src/ui/provider/ReactQuery.tsx",
        "src/ui/provider/ErrorBoundary.tsx",
        "src/infra/env.ts",
      ],
      provider: "istanbul",
    },
  },
  resolve: {
    alias: {
      "~": path.join(__dirname, "./src"),
    },
  },
  server: {
    /**
     * https://github.com/tajo/ladle/blob/main/e2e/playwright/vite.config.ts
     */
    open: "none",
  },

  preview: {
    /**
     * https://github.com/tajo/ladle/blob/main/e2e/playwright/vite.config.ts
     */
    open: "none",
  },
});

// TODO カバレッジしきい値
// https://github.com/vitest-dev/vitest/issues/1241
@github-actions
Copy link
Contributor Author

Closed in b55de1f

akira-toriyama added a commit that referenced this issue Feb 28, 2023
* ⬆️[x.x.o]: bump

* 🔧[x.x.o]: Add threshold of test coverage Close #859
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant