@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/CHANGELOG.md +17 -0
- package/README.md +133 -20
- package/builders.cjs +15 -0
- package/builders.d.ts +2 -0
- package/cache.cjs +67 -0
- package/cache.d.ts +31 -0
- package/entity-manager.cjs +145 -0
- package/entity-manager.d.ts +103 -0
- package/ids.cjs +41 -0
- package/ids.d.ts +13 -0
- package/index.cjs +100 -43
- package/index.d.ts +14 -11
- package/lock.cjs +56 -0
- package/lock.d.ts +26 -0
- package/matchers.cjs +45 -0
- package/matchers.d.ts +17 -0
- package/mock.cjs +7 -7
- package/outbox.cjs +125 -0
- package/outbox.d.ts +79 -0
- package/package.json +39 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@starci/jest-preset",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "The StarCi jest config for Nest repositories (unit
|
|
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
|
}
|