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

@chrisb-dev/auto-gen-store-component-unit-tests

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chrisb-dev/auto-gen-store-component-unit-tests - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

example/example.ts

6

index.ts
const args = process.argv.slice(2);
const filePath = args[0];
import * as fs from 'fs';
const fs = require('fs');

@@ -10,3 +10,3 @@ const tab = ` `;

const componentFile = require(filePath);
const componentFile = require(`${process.cwd()}/${filePath}`);
const store = {

@@ -115,2 +115,4 @@ select: () => 'test',

console.log('result', result);
fs.appendFileSync(filePath.replace('.ts', '.spec.ts'), result);
{
"name": "@chrisb-dev/auto-gen-store-component-unit-tests",
"version": "1.0.0",
"version": "1.0.1",
"description": "",
"main": "index.js",
"main": "index.ts",
"scripts": {

@@ -14,3 +14,6 @@ "test": "echo \"Error: no test specified\" && exit 1"

"typescript": "^3.1.3"
},
"dependencies": {
"ts-node": "^7.0.1"
}
}
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