@gsc-basic/vitest-config 1.2.0 → 2.0.1

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.1.1
11
- Build Time: 2026/8/6 11:00:13
12
- Build Commit: 955303b2115867d08e15eaab7245a240add5622e
10
+ Version: 2.0.0
11
+ Build Time: 2026/11/5 17:06:41
12
+ Build Commit: 1f6854bb7b2928dff3308e709c1b8302e447f0d5
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.1",
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
- "@vue/test-utils": "^2.4.11",
33
- "vite": "^8.2.0",
34
- "vitest": "^4.1.10"
37
+ "@vue/test-utils": "^2.5.0",
38
+ "vite": "^8.3.6",
39
+ "vitest": "^5.1.0"
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.10",
43
48
  "@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",
49
+ "@vitest/coverage-istanbul": "^5.1.0",
50
+ "@vitest/coverage-v8": "^5.1.0",
51
+ "@vitest/ui": "^5.1.0",
52
+ "happy-dom": "^21.0.4",
48
53
  "vitest-sonar-reporter": "^3.0.0"
49
54
  },
50
55
  "scripts": {