@starci/jest-preset 1.1.0 → 2.1.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@starci/jest-preset",
3
- "version": "1.1.0",
4
- "description": "The StarCi jest config for Nest repositories (unit and e2e projects, ts-jest with diagnostics off, coverage matching the Sonar denominators), the typed mock<T>() helper and the FakeClock test double for the platform/clock Clock port.",
3
+ "version": "2.1.0",
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(), recordingOutbox(), FakeClock, fakeIds(), builder() and the Outcome matchers toBeRefused/toSucceedWith.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
7
7
  "main": "index.cjs",
@@ -18,13 +18,42 @@
18
18
  "./clock": {
19
19
  "types": "./clock.d.ts",
20
20
  "default": "./clock.cjs"
21
+ },
22
+ "./entity-manager": {
23
+ "types": "./entity-manager.d.ts",
24
+ "default": "./entity-manager.cjs"
25
+ },
26
+ "./ids": {
27
+ "types": "./ids.d.ts",
28
+ "default": "./ids.cjs"
29
+ },
30
+ "./matchers": {
31
+ "types": "./matchers.d.ts",
32
+ "default": "./matchers.cjs"
33
+ },
34
+ "./cache": {
35
+ "types": "./cache.d.ts",
36
+ "default": "./cache.cjs"
37
+ },
38
+ "./lock": {
39
+ "types": "./lock.d.ts",
40
+ "default": "./lock.cjs"
41
+ },
42
+ "./outbox": {
43
+ "types": "./outbox.d.ts",
44
+ "default": "./outbox.cjs"
45
+ },
46
+ "./builders": {
47
+ "types": "./builders.d.ts",
48
+ "default": "./builders.cjs"
21
49
  }
22
50
  },
23
51
  "files": [
24
52
  "*.cjs",
25
53
  "*.d.ts",
26
54
  "!*.test.*",
27
- "README.md"
55
+ "README.md",
56
+ "CHANGELOG.md"
28
57
  ],
29
58
  "publishConfig": {
30
59
  "access": "public"
@@ -32,9 +61,15 @@
32
61
  "peerDependencies": {
33
62
  "@types/jest": ">=29",
34
63
  "jest": ">=29",
35
- "ts-jest": ">=29"
64
+ "ts-jest": ">=29",
65
+ "typeorm": ">=0.3"
36
66
  },
37
67
  "scripts": {
38
68
  "test": "node --test \"*.test.mjs\""
69
+ },
70
+ "peerDependenciesMeta": {
71
+ "typeorm": {
72
+ "optional": true
73
+ }
39
74
  }
40
75
  }