@starci/jest-preset 2.3.2 → 2.3.3
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 +3 -0
- package/index.cjs +6 -2
- package/package.json +2 -1
- package/sonar-exclusions.json +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.3.3 - 2026-10-21
|
|
4
|
+
- Changed: the Sonar exclusions live in `sonar-exclusions.json` (published), which `sonarExclusions()` reads; @starci/hfs ships the same file byte for byte so `npx @starci/cli app scaffold` renders them without installing this preset. The list is unchanged.
|
|
5
|
+
|
|
3
6
|
## 2.3.2 - 2026-10-18
|
|
4
7
|
- Added: shard mode `STARCI_COVERAGE_SHARD=1` (only the loaded files are measured, no per-file threshold, istanbul JSON) and `@starci/jest-preset/merge` (istanbul-lib-coverage merge by source location, lcov through the preset reporter): the coverage job of the sharded managed CI.
|
|
5
8
|
|
package/index.cjs
CHANGED
|
@@ -37,8 +37,12 @@ function collectCoverageFrom(coverage) {
|
|
|
37
37
|
return [...coverage.roots.map((root) => rootGlob(root, coverage.roles)), ...[...coverage.excludes, ...COVERAGE_EXCLUDES].map((glob) => `!${glob}`)]
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
/**
|
|
41
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Sonar `sonar.exclusions`: specs, e2e specs, dist and coverage output are not analysed at all. The list lives in sonar-exclusions.json, a
|
|
42
|
+
* plain data file @starci/hfs also ships byte for byte (packages/hfs/runtime, scripts/hfs/sync-runtime.mjs), so `starci app scaffold`
|
|
43
|
+
* renders the same exclusions before any app dependency is installed.
|
|
44
|
+
*/
|
|
45
|
+
const SONAR_EXCLUSIONS = require("./sonar-exclusions.json")
|
|
42
46
|
|
|
43
47
|
function sonarExclusions() {
|
|
44
48
|
return SONAR_EXCLUSIONS.join(",")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@starci/jest-preset",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"description": "The StarCi jest config for Nest repositories (unit, integration, e2e and contract projects, ts-jest with diagnostics off, per-file 100 coverage of *.service.ts only) and the one shared unit-test double kit: typed mock<T>(), mockEntityManager(), fakeTransaction(), fakeCache(), fakeLock(), recordingEventBus(), recordingQueueOutbox(), fakeInbox(), FakeClock, fakeIds(), builder() and the Outcome matchers toBeRefused/toSucceedWith.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"LICENSE",
|
|
64
64
|
"*.cjs",
|
|
65
65
|
"*.d.ts",
|
|
66
|
+
"sonar-exclusions.json",
|
|
66
67
|
"!*.spec.*",
|
|
67
68
|
"README.md",
|
|
68
69
|
"CHANGELOG.md"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
["**/*.spec.ts", "**/*.e2e-spec.ts", "**/dist/**", "**/coverage/**"]
|