@starci/jest-preset 2.3.2 → 2.3.4
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 +4 -0
- package/index.cjs +6 -2
- package/package.json +1 -1
- package/sonar-exclusions.cjs +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.3.4 - 2026-10-21
|
|
4
|
+
- Changed: supersedes 2.3.3, published from a lane whose history the owner refused (an unapproved allowlist entry) and therefore a superseded orphan that is not used; this version carries the same work plus the standalone scaffold fix.
|
|
5
|
+
- Changed: the Sonar exclusions live in `sonar-exclusions.cjs` (published, require-free), 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.
|
|
6
|
+
|
|
3
7
|
## 2.3.2 - 2026-10-18
|
|
4
8
|
- 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
9
|
|
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.cjs, a
|
|
42
|
+
* require-free module @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.cjs")
|
|
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.4",
|
|
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,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict"
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Sonar `sonar.exclusions`: specs, e2e specs, dist and coverage output are not analysed at all. A plain list with no require, so
|
|
5
|
+
* @starci/hfs ships this file byte for byte (packages/hfs/runtime, scripts/hfs/sync-runtime.mjs) and `starci app scaffold` renders
|
|
6
|
+
* the same exclusions before any app dependency is installed.
|
|
7
|
+
*/
|
|
8
|
+
module.exports = Object.freeze(["**/*.spec.ts", "**/*.e2e-spec.ts", "**/dist/**", "**/coverage/**"])
|