@loopstack/testing 0.15.4 → 0.15.5
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.
|
@@ -17,6 +17,11 @@ const createMockRepository = () => ({
|
|
|
17
17
|
});
|
|
18
18
|
function mockCoreModuleProviders(builder) {
|
|
19
19
|
return builder
|
|
20
|
+
.overrideProvider(core_1.MigrationsService)
|
|
21
|
+
.useValue({
|
|
22
|
+
onModuleInit: jest.fn(),
|
|
23
|
+
runMigrations: jest.fn(),
|
|
24
|
+
})
|
|
20
25
|
.overrideProvider((0, typeorm_1.getRepositoryToken)(common_1.PipelineEntity))
|
|
21
26
|
.useValue(createMockRepository())
|
|
22
27
|
.overrideProvider((0, typeorm_1.getRepositoryToken)(common_1.WorkflowEntity))
|
|
@@ -26,10 +31,6 @@ function mockCoreModuleProviders(builder) {
|
|
|
26
31
|
.overrideProvider((0, typeorm_1.getRepositoryToken)(common_1.WorkspaceEntity))
|
|
27
32
|
.useValue(createMockRepository())
|
|
28
33
|
.overrideProvider((0, typeorm_1.getRepositoryToken)(common_1.NamespaceEntity))
|
|
29
|
-
.useValue(createMockRepository())
|
|
30
|
-
.overrideProvider(core_1.MigrationsService)
|
|
31
|
-
.useValue({})
|
|
32
|
-
.overrideProvider(core_1.TaskSchedulerService)
|
|
33
|
-
.useValue({});
|
|
34
|
+
.useValue(createMockRepository());
|
|
34
35
|
}
|
|
35
36
|
//# sourceMappingURL=core-module-mock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-module-mock.js","sourceRoot":"","sources":["../../src/test-builder/core-module-mock.ts"],"names":[],"mappings":";;AAiBA,
|
|
1
|
+
{"version":3,"file":"core-module-mock.js","sourceRoot":"","sources":["../../src/test-builder/core-module-mock.ts"],"names":[],"mappings":";;AAiBA,0DAiBC;AAjCD,6CAAqD;AACrD,8CAAqH;AACrH,0CAAoD;AAEpD,MAAM,oBAAoB,GAAG,GAAG,EAAE,CAAC,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AC,CAAC;SACpD,QAAQ,CAAC,oBAAoB,EAAE,CAAC;SAChC,gBAAgB,CAAC,IAAA,4BAAkB,EAAC,uBAAc,CAAC,CAAC;SACpD,QAAQ,CAAC,oBAAoB,EAAE,CAAC;SAChC,gBAAgB,CAAC,IAAA,4BAAkB,EAAC,wBAAe,CAAC,CAAC;SACrD,QAAQ,CAAC,oBAAoB,EAAE,CAAC;SAChC,gBAAgB,CAAC,IAAA,4BAAkB,EAAC,wBAAe,CAAC,CAAC;SACrD,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAC;AACtC,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@loopstack/testing",
|
|
3
3
|
"displayName": "Loopstack Testing Utils",
|
|
4
4
|
"description": "Testing utilities for building tests for loopstack components",
|
|
5
|
-
"version": "0.15.
|
|
5
|
+
"version": "0.15.5",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Jakob Klippel",
|
|
8
8
|
"url": "https://www.linkedin.com/in/jakob-klippel/"
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@loopstack/common": "^0.15.
|
|
26
|
-
"@loopstack/core": "^0.15.
|
|
25
|
+
"@loopstack/common": "^0.15.1",
|
|
26
|
+
"@loopstack/core": "^0.15.3",
|
|
27
27
|
"@nestjs/common": "^11.0.0",
|
|
28
28
|
"@nestjs/config": "^4.0.2",
|
|
29
29
|
"@nestjs/core": "^11.0.0",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@loopstack/common": "^0.15.
|
|
47
|
-
"@loopstack/core": "^0.15.
|
|
46
|
+
"@loopstack/common": "^0.15.1",
|
|
47
|
+
"@loopstack/core": "^0.15.3",
|
|
48
48
|
"@nestjs/cli": "^11.0.5",
|
|
49
49
|
"@nestjs/common": "^11.1.9",
|
|
50
50
|
"@nestjs/config": "^4.0.2",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"jest": "^29.7.0",
|
|
58
58
|
"prettier": "^3.5.3",
|
|
59
59
|
"ts-jest": "^29.2.6",
|
|
60
|
+
"typeorm": "^0.3.28",
|
|
60
61
|
"typescript": "^5.8.3"
|
|
61
62
|
}
|
|
62
63
|
}
|