From 4decf63feb620501f439523dda0431fa53c991ef Mon Sep 17 00:00:00 2001 From: Technote Date: Sun, 17 Apr 2022 02:33:33 +0900 Subject: [PATCH 1/5] chore: tweaks --- vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 770a31e..04f7027 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,5 +5,8 @@ import { defineConfig } from 'vite'; export default defineConfig({ test: { setupFiles: './src/setup.ts', + clearMocks: true, + mockReset: true, + restoreMocks: true, }, }); From 73027ae8bb8aaf90a07576ce1c2599cdaf1911f6 Mon Sep 17 00:00:00 2001 From: Technote Date: Mon, 18 Apr 2022 01:34:36 +0900 Subject: [PATCH 2/5] chore: lcov coverage --- vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 04f7027..e30c106 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -8,5 +8,8 @@ export default defineConfig({ clearMocks: true, mockReset: true, restoreMocks: true, + coverage: { + reporter: ['html', 'lcov'], + }, }, }); From f68fbc4f5296b5b6e01a98933a53f0e73ee614fa Mon Sep 17 00:00:00 2001 From: technote-space Date: Sun, 17 Apr 2022 16:36:19 +0000 Subject: [PATCH 3/5] chore: update npm dependencies --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" From c87b3270bce0173ae6ae883178765bd7eebbcb95 Mon Sep 17 00:00:00 2001 From: Technote Date: Mon, 18 Apr 2022 01:36:39 +0900 Subject: [PATCH 4/5] feat: update package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From 863bcbbae86dff11f46af3aa0d0ec759e7faae6b Mon Sep 17 00:00:00 2001 From: Technote Date: Mon, 18 Apr 2022 01:44:12 +0900 Subject: [PATCH 5/5] chore: tweaks --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) 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