@gsc-basic/vitest-config 2.0.1 → 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.js +4 -4
- 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: 2.0.
|
|
11
|
-
Build Time: 2026/11/
|
|
12
|
-
Build Commit:
|
|
10
|
+
Version: 2.0.2
|
|
11
|
+
Build Time: 2026/11/26 15:29:17
|
|
12
|
+
Build Commit: 50f0151313db2d80b4ab32035fd512e247c889e7
|
|
13
13
|
*/
|
|
14
|
-
import
|
|
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.
|
|
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",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@vue/test-utils": "^2.5.0",
|
|
38
|
-
"vite": "^8.3.
|
|
39
|
-
"vitest": "^5.1.
|
|
38
|
+
"vite": "^8.3.8",
|
|
39
|
+
"vitest": "^5.1.2"
|
|
40
40
|
},
|
|
41
41
|
"peerDependenciesMeta": {
|
|
42
42
|
"@vue/test-utils": {
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
47
|
+
"@vitejs/plugin-vue": "^6.0.11",
|
|
48
48
|
"@vitejs/plugin-vue-jsx": "^5.1.6",
|
|
49
|
-
"@vitest/coverage-istanbul": "^5.1.
|
|
50
|
-
"@vitest/coverage-v8": "^5.1.
|
|
51
|
-
"@vitest/ui": "^5.1.
|
|
49
|
+
"@vitest/coverage-istanbul": "^5.1.2",
|
|
50
|
+
"@vitest/coverage-v8": "^5.1.2",
|
|
51
|
+
"@vitest/ui": "^5.1.2",
|
|
52
52
|
"happy-dom": "^21.0.4",
|
|
53
53
|
"vitest-sonar-reporter": "^3.0.0"
|
|
54
54
|
},
|