@pixpilot/scaffoldfy-configs 0.22.0 → 0.23.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @pixpilot/scaffoldfy-configs
2
2
 
3
+ ## 0.23.0
4
+
5
+ ### Minor Changes
6
+
7
+ - enhance test scripts and add coverage dependencies
8
+
3
9
  ## 0.22.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pixpilot/scaffoldfy-configs",
3
3
  "type": "module",
4
- "version": "0.22.0",
4
+ "version": "0.23.0",
5
5
  "author": "PixPilot <m.doaie@hotmail.com>",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -23,11 +23,11 @@
23
23
  "devDependencies": {
24
24
  "@types/node": "^22.18.11",
25
25
  "eslint": "^9.38.0",
26
- "@internal/eslint-config": "0.3.0",
27
26
  "@internal/tsdown-config": "0.1.0",
28
27
  "@internal/prettier-config": "0.0.1",
29
28
  "@internal/vitest-config": "0.1.0",
30
- "@pixpilot/scaffoldfy": "0.48.0"
29
+ "@pixpilot/scaffoldfy": "0.48.0",
30
+ "@internal/eslint-config": "0.3.0"
31
31
  },
32
32
  "prettier": "@internal/prettier-config",
33
33
  "publishConfig": {
@@ -200,6 +200,13 @@ describe('workspace-package-generator – package.json.hbs rendering', () => {
200
200
  expect(pkg.private).toBe(true);
201
201
  expect(pkg.publishConfig).toBeUndefined();
202
202
  expect(pkg.files).toBeUndefined();
203
+ expect(pkg.scripts?.['test:ui']).toBe('vitest --ui --watch');
204
+ expect(pkg.scripts?.['test:ui:coverage']).toBe(
205
+ 'vitest --ui --coverage --watch --hookTimeout=30000 --coverage.thresholds.lines=0 --coverage.thresholds.functions=0 --coverage.thresholds.branches=0 --coverage.thresholds.statements=0',
206
+ );
207
+ expect(pkg.devDependencies?.['@vitest/coverage-v8']).toBe('catalog:dev');
208
+ expect(pkg.devDependencies?.['@vitest/ui']).toBe('catalog:dev');
209
+ expect(pkg.devDependencies?.vitest).toBe('catalog:dev');
203
210
  });
204
211
 
205
212
  /** Public npm package with tsdown bundler */
@@ -67,7 +67,8 @@
67
67
  {{/if}}
68
68
  "test": "vitest --run --passWithNoTests",
69
69
  "test:watch": "vitest --watch",
70
- "test:ui": "vitest --ui",
70
+ "test:ui": "vitest --ui --watch",
71
+ "test:ui:coverage": "vitest --ui --coverage --watch --hookTimeout=30000 --coverage.thresholds.lines=0 --coverage.thresholds.functions=0 --coverage.thresholds.branches=0 --coverage.thresholds.statements=0",
71
72
  "test:coverage": "vitest --coverage",
72
73
  "typecheck": "tsc --noEmit",
73
74
  "lint": "eslint",
@@ -79,6 +80,8 @@
79
80
  "@internal/tsconfig": "workspace:*",
80
81
  "@internal/vitest-config": "workspace:*",
81
82
  "@types/node": "catalog:dev",
83
+ "@vitest/coverage-v8": "catalog:dev",
84
+ "@vitest/ui": "catalog:dev",
82
85
  {{#if isReactPackage}}
83
86
  {{#if isNpmPackage}}
84
87
  "@types/react": "^19.0.0",
@@ -108,7 +111,8 @@
108
111
  "tsdown": "catalog:dev",
109
112
  {{/if}}
110
113
  {{/if}}
111
- "typescript": "catalog:dev"
114
+ "typescript": "catalog:dev",
115
+ "vitest": "catalog:dev"
112
116
  },
113
117
  "prettier": "@internal/prettier-config"
114
118
  }