@gsc-basic/vitest-config 2.0.0 → 2.0.2

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.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
 
2
2
  import { UserConfig } from "vite";
3
- //#region src/typing.d.ts
4
3
  type GscVitestPreset = 'node' | 'web' | 'vue';
5
4
  interface GscVitestSonarReporterOptions {
6
5
  outputFile?: string;
@@ -41,10 +40,7 @@ interface GscVitestOptions {
41
40
  test?: GscVitestTestOptions;
42
41
  }
43
42
  type GscVitestConfig = UserConfig;
44
- //#endregion
45
- //#region src/index.d.ts
46
43
  declare function createVitestConfig(options?: GscVitestOptions): GscVitestConfig;
47
44
  declare function defineVitestConfig(options?: GscVitestOptions, overrides?: GscVitestConfig): GscVitestConfig;
48
45
  declare function mergeVitestConfig(baseConfig: GscVitestConfig, overrideConfig: GscVitestConfig): GscVitestConfig;
49
- //#endregion
50
46
  export { type GscVitestConfig, type GscVitestCoverageOptions, type GscVitestOptions, type GscVitestPluginOptions, type GscVitestPreset, type GscVitestSonarReporterOptions, type GscVitestTestOptions, createVitestConfig, defineVitestConfig, mergeVitestConfig };
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.2.0
11
- Build Time: 2026/9/7 10:27:04
12
- Build Commit: 6c6576331d6ac4b02ae9149236b3d981dd041ae7
10
+ Version: 2.0.2
11
+ Build Time: 2026/11/26 15:29:17
12
+ Build Commit: 50f0151313db2d80b4ab32035fd512e247c889e7
13
13
  */
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};
14
+ import e from"@vitejs/plugin-vue";import t from"@vitejs/plugin-vue-jsx";import{createRequire as n}from"node:module";import{configDefaults as r,defineConfig as i,mergeConfig as a}from"vitest/config";const o={provider:`v8`,reporter:[`text`,`lcov`]},s=n(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(n,r){let i=[],a=l[r],o=n.plugins?.vue??a.vue,s=n.plugins?.vueJsx??a.vueJsx;return o&&i.push(e()),s&&i.push(t()),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": "2.0.0",
4
+ "version": "2.0.2",
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",
@@ -28,10 +28,15 @@
28
28
  "files": [
29
29
  "./dist"
30
30
  ],
31
+ "engines": {
32
+ "node": "^24.22.1 || ^26.12.1",
33
+ "npm": ">= 11.19.1",
34
+ "pnpm": ">= 12.15.0"
35
+ },
31
36
  "peerDependencies": {
32
37
  "@vue/test-utils": "^2.5.0",
33
- "vite": "^8.2.0",
34
- "vitest": "^5.0.0"
38
+ "vite": "^8.3.8",
39
+ "vitest": "^5.1.2"
35
40
  },
36
41
  "peerDependenciesMeta": {
37
42
  "@vue/test-utils": {
@@ -39,12 +44,12 @@
39
44
  }
40
45
  },
41
46
  "dependencies": {
42
- "@vitejs/plugin-vue": "^6.0.8",
47
+ "@vitejs/plugin-vue": "^6.0.11",
43
48
  "@vitejs/plugin-vue-jsx": "^5.1.6",
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",
49
+ "@vitest/coverage-istanbul": "^5.1.2",
50
+ "@vitest/coverage-v8": "^5.1.2",
51
+ "@vitest/ui": "^5.1.2",
52
+ "happy-dom": "^21.0.4",
48
53
  "vitest-sonar-reporter": "^3.0.0"
49
54
  },
50
55
  "scripts": {