From 08691d7ba459f27222ed2fbaee02c6c0a84a338d Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Fri, 22 Sep 2023 23:45:11 +0900 Subject: [PATCH] chore(vitest): add @vitest/ui (#160) * chore(vitest): add @vitest/ui * chore: update --- package.json | 1 + packages/react-query/package.json | 2 +- packages/react/package.json | 2 +- pnpm-lock.yaml | 64 +++++++++++++++++++++++++++---- 4 files changed, 60 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 45f39fbb7..68f1af432 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "@testing-library/react": "^13.4.0", "@types/testing-library__jest-dom": "^5.14.5", "@vitest/coverage-v8": "^0.34.3", + "@vitest/ui": "^0.34.4", "commitizen": "^4.3.0", "cz-conventional-changelog": "^3.3.0", "eslint": "^8.42.0", diff --git a/packages/react-query/package.json b/packages/react-query/package.json index d277bf72f..0e7a23bc5 100644 --- a/packages/react-query/package.json +++ b/packages/react-query/package.json @@ -54,7 +54,7 @@ "prepack": "pnpm build && pnpm test:tsd", "test": "vitest run --coverage", "test:tsd": "tsd -t ./dist/index.d.ts", - "test:watch": "vitest --coverage", + "test:watch": "vitest --ui --coverage.enabled=true", "type:check": "tsc --noEmit" }, "devDependencies": { diff --git a/packages/react/package.json b/packages/react/package.json index f2810800c..eec51df89 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -62,7 +62,7 @@ "lint:pub": "publint --strict", "prepack": "pnpm build", "test": "vitest run --coverage", - "test:watch": "vitest --coverage", + "test:watch": "vitest --ui --coverage.enabled=true", "type:check": "tsc --noEmit" }, "dependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5decb382f..f0d9818fa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -40,6 +40,9 @@ importers: '@vitest/coverage-v8': specifier: ^0.34.3 version: 0.34.3(vitest@0.34.3) + '@vitest/ui': + specifier: ^0.34.4 + version: 0.34.4(vitest@0.34.3) commitizen: specifier: ^4.3.0 version: 4.3.0 @@ -84,7 +87,7 @@ importers: version: 4.4.9(@types/node@18.16.2) vitest: specifier: ^0.34.3 - version: 0.34.3(jsdom@22.1.0) + version: 0.34.3(@vitest/ui@0.34.4)(jsdom@22.1.0) configs/eslint-config: dependencies: @@ -3537,7 +3540,7 @@ packages: engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} dependencies: cross-spawn: 7.0.3 - fast-glob: 3.2.12 + fast-glob: 3.3.1 is-glob: 4.0.3 open: 9.1.0 picocolors: 1.0.0 @@ -4372,7 +4375,7 @@ packages: std-env: 3.3.3 test-exclude: 6.0.0 v8-to-istanbul: 9.1.0 - vitest: 0.34.3(jsdom@22.1.0) + vitest: 0.34.3(@vitest/ui@0.34.4)(jsdom@22.1.0) transitivePeerDependencies: - supports-color dev: true @@ -4403,6 +4406,20 @@ packages: dependencies: tinyspy: 2.1.1 + /@vitest/ui@0.34.4(vitest@0.34.3): + resolution: {integrity: sha512-gz0m0r9ErFG32r+DRdwuLJpUDpbi+jrMcw9nJZAau48Fs4LDIBg561PvczvGqyYxzbyFU7vgkSnSlSDfK0d53w==} + peerDependencies: + vitest: '>=0.30.1 <1' + dependencies: + '@vitest/utils': 0.34.4 + fast-glob: 3.3.1 + fflate: 0.8.1 + flatted: 3.2.7 + pathe: 1.1.1 + picocolors: 1.0.0 + sirv: 2.0.3 + vitest: 0.34.3(@vitest/ui@0.34.4)(jsdom@22.1.0) + /@vitest/utils@0.34.3: resolution: {integrity: sha512-kiSnzLG6m/tiT0XEl4U2H8JDBjFtwVlaE8I3QfGiMFR0QvnRDfYfdP3YvTBWM/6iJDAyaPY6yVQiCTUc7ZzTHA==} dependencies: @@ -4410,6 +4427,13 @@ packages: loupe: 2.3.6 pretty-format: 29.5.0 + /@vitest/utils@0.34.4: + resolution: {integrity: sha512-yR2+5CHhp/K4ySY0Qtd+CAL9f5Yh1aXrKfAT42bq6CtlGPh92jIDDDSg7ydlRow1CP+dys4TrOrbELOyNInHSg==} + dependencies: + diff-sequences: 29.4.3 + loupe: 2.3.6 + pretty-format: 29.5.0 + /@vue/compiler-core@3.3.4: resolution: {integrity: sha512-cquyDNvZ6jTbf/+x+AgM2Arrp6G4Dzbb0R64jiG804HRMfRiFXWI6kqUVqZ6ZR0bQhIoQjB4+2bhNtVwndW15g==} dependencies: @@ -5745,7 +5769,7 @@ packages: peerDependencies: webpack: ^5.1.0 dependencies: - fast-glob: 3.2.12 + fast-glob: 3.3.1 glob-parent: 6.0.2 globby: 13.1.4 normalize-path: 3.0.0 @@ -7050,7 +7074,7 @@ packages: '@typescript-eslint/utils': 6.5.0(eslint@8.42.0)(typescript@5.2.2) eslint: 8.42.0 typescript: 5.2.2 - vitest: 0.34.3(jsdom@22.1.0) + vitest: 0.34.3(@vitest/ui@0.34.4)(jsdom@22.1.0) transitivePeerDependencies: - supports-color dev: false @@ -7327,6 +7351,16 @@ packages: merge2: 1.4.1 micromatch: 4.0.5 + /fast-glob@3.3.1: + resolution: {integrity: sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==} + engines: {node: '>=8.6.0'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.5 + /fast-json-stable-stringify@2.1.0: resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} @@ -7381,6 +7415,9 @@ packages: dependencies: xml-js: 1.6.11 + /fflate@0.8.1: + resolution: {integrity: sha512-/exOvEuc+/iaUm105QIiOt4LpBdMTWsXxqR0HDF35vx3fmaKzw7354gTilCh5rkzEt8WYyG//ku3h3nRmd7CHQ==} + /figures@3.2.0: resolution: {integrity: sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==} engines: {node: '>=8'} @@ -7902,7 +7939,7 @@ packages: engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: dir-glob: 3.0.1 - fast-glob: 3.2.12 + fast-glob: 3.3.1 ignore: 5.2.4 merge2: 1.4.1 slash: 4.0.0 @@ -12552,6 +12589,14 @@ packages: mrmime: 1.0.1 totalist: 1.1.0 + /sirv@2.0.3: + resolution: {integrity: sha512-O9jm9BsID1P+0HOi81VpXPoDxYP374pkOLzACAoyUQ/3OUVndNpsz6wMnY2z+yOxzbllCKZrM+9QrWsv4THnyA==} + engines: {node: '>= 10'} + dependencies: + '@polka/url': 1.0.0-next.21 + mrmime: 1.0.1 + totalist: 3.0.1 + /sisteransi@1.0.5: resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} @@ -13173,6 +13218,10 @@ packages: resolution: {integrity: sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==} engines: {node: '>=6'} + /totalist@3.0.1: + resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==} + engines: {node: '>=6'} + /tough-cookie@4.1.2: resolution: {integrity: sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==} engines: {node: '>=6'} @@ -14009,7 +14058,7 @@ packages: optionalDependencies: fsevents: 2.3.2 - /vitest@0.34.3(jsdom@22.1.0): + /vitest@0.34.3(@vitest/ui@0.34.4)(jsdom@22.1.0): resolution: {integrity: sha512-7+VA5Iw4S3USYk+qwPxHl8plCMhA5rtfwMjgoQXMT7rO5ldWcdsdo3U1QD289JgglGK4WeOzgoLTsGFu6VISyQ==} engines: {node: '>=v14.18.0'} hasBin: true @@ -14047,6 +14096,7 @@ packages: '@vitest/runner': 0.34.3 '@vitest/snapshot': 0.34.3 '@vitest/spy': 0.34.3 + '@vitest/ui': 0.34.4(vitest@0.34.3) '@vitest/utils': 0.34.3 acorn: 8.10.0 acorn-walk: 8.2.0