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

smelly-cli

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smelly-cli - npm Package Compare versions

Comparing version

to
0.0.8

3

build/src/find-smells.js

@@ -38,2 +38,3 @@ "use strict";

const report = args[4];
const reportOutput = args[5];
if (!fileName) {

@@ -67,3 +68,3 @@ console.error('[SMELLY] please provide a test file');

}
const to = path_1.default.resolve(`${__dirname}/../..`);
const to = path_1.default.resolve(reportOutput);
const report = new reports_1.SmellsAggreagtor(aggregator, { to });

@@ -70,0 +71,0 @@ report.build();

@@ -32,3 +32,3 @@ "use strict";

it('find no smells for a given path', async () => {
const { stdout } = await execPromise(`npm run cli -- fake-data/no-smells/ javascript --report=html`);
const { stdout } = await execPromise(`npm run cli -- fake-data/no-smells/ javascript --report=html --report-output=$(pwd)`);
assert.equal(true, stdout.includes("Report HTML generated"));

@@ -35,0 +35,0 @@ });

{
"name": "smelly-cli",
"version": "0.0.7",
"version": "0.0.8",
"private": false,

@@ -5,0 +5,0 @@ "description": "Find out the smells in your tests, suggestions for correction and the theory behind them",

@@ -12,2 +12,4 @@ # @smelly/cli

Single file
```sh

@@ -17,2 +19,8 @@ npm run cli -- path/to/file/test.js typescript

Report
```sh
npm run cli -- path/to/file/test.js typescript --report=html
```
## Resources

@@ -19,0 +27,0 @@

@@ -11,2 +11,3 @@ import path from 'path';

const report = args[4];
const reportOutput = args[5];

@@ -49,3 +50,3 @@ if (!fileName) {

const to = path.resolve(`${__dirname}/../..`);
const to = path.resolve(reportOutput);
const report = new SmellsAggreagtor(aggregator, { to });

@@ -52,0 +53,0 @@ report.build();

@@ -10,3 +10,3 @@ import { exec } from "child_process";

it('find no smells for a given path', async () => {
const { stdout } = await execPromise(`npm run cli -- fake-data/no-smells/ javascript --report=html`);
const { stdout } = await execPromise(`npm run cli -- fake-data/no-smells/ javascript --report=html --report-output=$(pwd)`);

@@ -13,0 +13,0 @@ assert.equal(true, stdout.includes("Report HTML generated"));

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet