diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b45e68..e88e2d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,6 +62,7 @@ jobs: FILES: | yarn.lock jest.config.js + vite.config.ts if: "! contains(env.COMMIT_MESSAGE, '[skip ci]') && ! contains(env.COMMIT_MESSAGE, '[ci skip]')" - name: Set running flag run: echo "RUNNING=" >> $GITHUB_ENV diff --git a/package.json b/package.json index bf12cef..a462663 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@technote-space/ts-package-template", - "version": "0.2.1", + "version": "0.2.2", "description": "Template for npm package.", "keywords": [ "template" diff --git a/vite.config.ts b/vite.config.ts index 770a31e..e30c106 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,5 +5,11 @@ import { defineConfig } from 'vite'; export default defineConfig({ test: { setupFiles: './src/setup.ts', + clearMocks: true, + mockReset: true, + restoreMocks: true, + coverage: { + reporter: ['html', 'lcov'], + }, }, }); diff --git a/yarn.lock b/yarn.lock index 4cb9b6d..ed59fcb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1331,9 +1331,9 @@ foreground-child@^2.0.0: signal-exit "^3.0.2" fs-extra@^10.0.0: - version "10.0.1" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.0.1.tgz#27de43b4320e833f6867cc044bfce29fdf0ef3b8" - integrity sha512-NbdoVMZso2Lsrn/QwLXOy6rm0ufY2zEOKCDzJR/0kBsb0E6qed0P3iYK+Ath3BfvXEeu4JhEtXLgILx5psUfag== + version "10.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf" + integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== dependencies: graceful-fs "^4.2.0" jsonfile "^6.0.1"