New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tsed/cli-plugin-jest

Package Overview
Dependencies
Maintainers
5
Versions
366
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsed/cli-plugin-jest - npm Package Compare versions

Comparing version 1.12.3 to 1.13.0

5

lib/CliPluginJestModule.d.ts

@@ -0,2 +1,7 @@

import { ProjectPackageJson } from "@tsed/cli-core";
export declare class CliPluginJestModule {
packageJson: ProjectPackageJson;
install(): void;
addScripts(): void;
addDevDependencies(): void;
}

@@ -5,6 +5,35 @@ "use strict";

const cli_core_1 = require("@tsed/cli-core");
const di_1 = require("@tsed/di");
const JestGenerateHook_1 = require("./hooks/JestGenerateHook");
const JestInitHook_1 = require("./hooks/JestInitHook");
let CliPluginJestModule = class CliPluginJestModule {
install() {
this.addScripts();
this.addDevDependencies();
}
addScripts() {
this.packageJson.addScripts({
test: "yarn test:lint && yarn test:coverage",
"test:unit": "cross-env NODE_ENV=test jest",
"test:coverage": "yarn test:unit"
});
}
addDevDependencies() {
this.packageJson.addDevDependencies({
"@types/jest": "latest",
jest: "latest",
"ts-jest": "latest"
});
}
};
tslib_1.__decorate([
di_1.Inject(),
tslib_1.__metadata("design:type", cli_core_1.ProjectPackageJson)
], CliPluginJestModule.prototype, "packageJson", void 0);
tslib_1.__decorate([
cli_core_1.OnAdd("@tsed/cli-plugin-jest"),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", []),
tslib_1.__metadata("design:returntype", void 0)
], CliPluginJestModule.prototype, "install", null);
CliPluginJestModule = tslib_1.__decorate([

@@ -11,0 +40,0 @@ cli_core_1.Module({

6

lib/hooks/JestInitHook.d.ts

@@ -1,2 +0,1 @@

import { InitCmdContext } from "@tsed/cli";
import { ProjectPackageJson, RootRendererService, ScriptsRendererService, SrcRendererService } from "@tsed/cli-core";

@@ -8,9 +7,6 @@ export declare class JestInitHook {

protected scriptsRenderer: ScriptsRendererService;
onInitExec(ctx: InitCmdContext): {
onInitExec(): {
title: string;
task: (ctx: any) => Promise<import("rxjs").Observable<unknown>>;
}[];
addScripts(): void;
addDependencies(ctx: InitCmdContext): void;
addDevDependencies(ctx: InitCmdContext): void;
}

@@ -8,6 +8,3 @@ "use strict";

let JestInitHook = class JestInitHook {
onInitExec(ctx) {
this.addScripts();
this.addDependencies(ctx);
this.addDevDependencies(ctx);
onInitExec() {
return [

@@ -33,19 +30,2 @@ {

}
addScripts() {
this.packageJson.addScripts({
test: "yarn test:lint && yarn test:coverage",
"test:unit": "cross-env NODE_ENV=test jest",
"test:coverage": "yarn test:unit"
});
}
addDependencies(ctx) {
this.packageJson.addDependencies({}, ctx);
}
addDevDependencies(ctx) {
this.packageJson.addDevDependencies({
"@types/jest": "latest",
jest: "latest",
"ts-jest": "latest"
}, ctx);
}
};

@@ -71,3 +51,3 @@ tslib_1.__decorate([

tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", [Object]),
tslib_1.__metadata("design:paramtypes", []),
tslib_1.__metadata("design:returntype", void 0)

@@ -74,0 +54,0 @@ ], JestInitHook.prototype, "onInitExec", null);

{
"name": "@tsed/cli-plugin-jest",
"version": "1.12.3",
"version": "1.13.0",
"main": "lib/index.js",

@@ -8,4 +8,4 @@ "typings": "lib/index.d.ts",

"devDependencies": {
"@tsed/cli": "1.12.3",
"@tsed/cli-core": "1.12.3"
"@tsed/cli": "1.13.0",
"@tsed/cli-core": "1.13.0"
},

@@ -12,0 +12,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc