@gsc-basic/vitest-config 1.2.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -7,8 +7,8 @@ You shall not disclose such Confidential Information and shall use it only in
7
7
  accordance with the terms of the license agreement.
8
8
 
9
9
  --- Build Info ---
10
- Version: 1.1.1
11
- Build Time: 2026/8/6 11:00:13
12
- Build Commit: 955303b2115867d08e15eaab7245a240add5622e
10
+ Version: 1.2.0
11
+ Build Time: 2026/9/7 10:27:04
12
+ Build Commit: 6c6576331d6ac4b02ae9149236b3d981dd041ae7
13
13
  */
14
14
  import{createRequire as e}from"node:module";import t from"@vitejs/plugin-vue";import n from"@vitejs/plugin-vue-jsx";import{configDefaults as r,defineConfig as i,mergeConfig as a}from"vitest/config";const o={provider:`v8`,reporter:[`text`,`lcov`]},s=e(import.meta.url);function c(){try{return s.resolve(`vitest-sonar-reporter`)}catch{return`vitest-sonar-reporter`}}const l={node:{environment:`node`,css:!1,vue:!1,vueJsx:!1},web:{environment:`happy-dom`,css:!0,vue:!1,vueJsx:!1},vue:{environment:`happy-dom`,css:!0,vue:!0,vueJsx:!0}};function u(e){if(e!==!1)return e===!0||e==null?o:{...o,...e}}function d(e,r){let i=[],a=l[r],o=e.plugins?.vue??a.vue,s=e.plugins?.vueJsx??a.vueJsx;return o&&i.push(t()),s&&i.push(n()),i}function f(e){let t=e.test?.sonarReporter;if(t)return[`default`,[c(),{outputFile:`reports/vitest-sonar-report.xml`,...t===!0?{}:t}]]}function p(e={}){let t=e.preset||`node`,n=l[t],i=f(e);return{plugins:d(e,t),root:e.root,resolve:e.resolve,...e.css?{css:e.css}:{},test:{environment:e.test?.environment||n.environment,includeSource:e.test?.includeSource,exclude:[...r.exclude,...e.test?.exclude||[]],setupFiles:e.test?.setupFiles||[],css:e.test?.css??n.css,globals:e.test?.globals,passWithNoTests:e.test?.passWithNoTests,ui:e.test?.ui,...i?{reporters:i}:{},server:{deps:{inline:e.test?.depsInline,external:e.test?.depsExternal}},coverage:u(e.test?.coverage)}}}function m(e={},t={}){return i(a(p(e),t))}function h(e,t){return a(e,t)}export{p as createVitestConfig,m as defineVitestConfig,h as mergeVitestConfig};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gsc-basic/vitest-config",
3
3
  "type": "module",
4
- "version": "1.2.0",
4
+ "version": "2.0.0",
5
5
  "description": "Vitest Config for GSC Basic Service",
6
6
  "author": "Lenovo SSG BASD <-GSC_Scaffolding_Support@lenovo.com>",
7
7
  "license": "LicenseRef-Proprietary",
@@ -29,9 +29,9 @@
29
29
  "./dist"
30
30
  ],
31
31
  "peerDependencies": {
32
- "@vue/test-utils": "^2.4.11",
32
+ "@vue/test-utils": "^2.5.0",
33
33
  "vite": "^8.2.0",
34
- "vitest": "^4.1.10"
34
+ "vitest": "^5.0.0"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@vue/test-utils": {
@@ -41,10 +41,10 @@
41
41
  "dependencies": {
42
42
  "@vitejs/plugin-vue": "^6.0.8",
43
43
  "@vitejs/plugin-vue-jsx": "^5.1.6",
44
- "@vitest/coverage-istanbul": "^4.1.10",
45
- "@vitest/coverage-v8": "^4.1.10",
46
- "@vitest/ui": "^4.1.10",
47
- "happy-dom": "^20.11.1",
44
+ "@vitest/coverage-istanbul": "^5.0.0",
45
+ "@vitest/coverage-v8": "^5.0.0",
46
+ "@vitest/ui": "^5.0.0",
47
+ "happy-dom": "^20.14.0",
48
48
  "vitest-sonar-reporter": "^3.0.0"
49
49
  },
50
50
  "scripts": {