@tsed/cli-plugin-jest 6.1.13 → 6.1.14
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.
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import {
|
|
2
|
+
import { SrcRendererService } from "@tsed/cli";
|
|
3
|
+
import { inject, Injectable, OnExec } from "@tsed/cli-core";
|
|
3
4
|
import { normalizePath } from "@tsed/normalize-path";
|
|
4
5
|
import { TEMPLATE_DIR } from "../utils/templateDir.js";
|
|
5
6
|
let JestGenerateHook = class JestGenerateHook {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.srcRenderService = inject(SrcRendererService);
|
|
9
|
+
}
|
|
6
10
|
onGenerateExec(ctx) {
|
|
7
11
|
const { symbolPath } = ctx;
|
|
8
12
|
const { specTemplate, integrationTemplate, relativeSrcPath } = this.mapOptions(ctx);
|
|
@@ -44,10 +48,6 @@ let JestGenerateHook = class JestGenerateHook {
|
|
|
44
48
|
};
|
|
45
49
|
}
|
|
46
50
|
};
|
|
47
|
-
__decorate([
|
|
48
|
-
Inject(),
|
|
49
|
-
__metadata("design:type", SrcRendererService)
|
|
50
|
-
], JestGenerateHook.prototype, "srcRenderService", void 0);
|
|
51
51
|
__decorate([
|
|
52
52
|
OnExec("generate"),
|
|
53
53
|
__metadata("design:type", Function),
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import {
|
|
2
|
+
import { RootRendererService } from "@tsed/cli";
|
|
3
|
+
import { inject, Injectable, OnExec, ProjectPackageJson } from "@tsed/cli-core";
|
|
3
4
|
import { TEMPLATE_DIR } from "../utils/templateDir.js";
|
|
4
5
|
let JestInitHook = class JestInitHook {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.packageJson = inject(ProjectPackageJson);
|
|
8
|
+
this.rootRenderer = inject(RootRendererService);
|
|
9
|
+
}
|
|
5
10
|
onInitExec() {
|
|
6
11
|
return [
|
|
7
12
|
{
|
|
@@ -15,22 +20,6 @@ let JestInitHook = class JestInitHook {
|
|
|
15
20
|
];
|
|
16
21
|
}
|
|
17
22
|
};
|
|
18
|
-
__decorate([
|
|
19
|
-
Inject(),
|
|
20
|
-
__metadata("design:type", ProjectPackageJson)
|
|
21
|
-
], JestInitHook.prototype, "packageJson", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
Inject(),
|
|
24
|
-
__metadata("design:type", SrcRendererService)
|
|
25
|
-
], JestInitHook.prototype, "srcRenderer", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
Inject(),
|
|
28
|
-
__metadata("design:type", RootRendererService)
|
|
29
|
-
], JestInitHook.prototype, "rootRenderer", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
Inject(),
|
|
32
|
-
__metadata("design:type", ScriptsRendererService)
|
|
33
|
-
], JestInitHook.prototype, "scriptsRenderer", void 0);
|
|
34
23
|
__decorate([
|
|
35
24
|
OnExec("init"),
|
|
36
25
|
__metadata("design:type", Function),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import {
|
|
1
|
+
import { type GenerateCmdContext, SrcRendererService } from "@tsed/cli";
|
|
2
|
+
import { type Tasks } from "@tsed/cli-core";
|
|
3
3
|
export declare class JestGenerateHook {
|
|
4
4
|
srcRenderService: SrcRendererService;
|
|
5
5
|
onGenerateExec(ctx: GenerateCmdContext): Tasks;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RootRendererService } from "@tsed/cli";
|
|
2
|
+
import { ProjectPackageJson } from "@tsed/cli-core";
|
|
2
3
|
export declare class JestInitHook {
|
|
3
4
|
protected packageJson: ProjectPackageJson;
|
|
4
|
-
protected srcRenderer: SrcRendererService;
|
|
5
5
|
protected rootRenderer: RootRendererService;
|
|
6
|
-
protected scriptsRenderer: ScriptsRendererService;
|
|
7
6
|
onInitExec(): {
|
|
8
7
|
title: string;
|
|
9
8
|
task: (ctx: any) => import("rxjs").Observable<unknown>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/cli-plugin-jest",
|
|
3
3
|
"description": "Ts.ED CLI plugin. Add Jest support",
|
|
4
|
-
"version": "6.1.
|
|
4
|
+
"version": "6.1.14",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/esm/index.js",
|
|
7
7
|
"source": "./src/index.ts",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@tsed/cli": "6.1.
|
|
25
|
-
"@tsed/cli-core": "6.1.
|
|
26
|
-
"@tsed/typescript": "6.1.
|
|
24
|
+
"@tsed/cli": "6.1.14",
|
|
25
|
+
"@tsed/cli-core": "6.1.14",
|
|
26
|
+
"@tsed/typescript": "6.1.14",
|
|
27
27
|
"cross-env": "7.0.3",
|
|
28
28
|
"typescript": "5.6.2",
|
|
29
29
|
"vitest": "2.1.1"
|