diff --git a/src/rules/__tests__/detectJestVersion.test.ts b/src/rules/__tests__/detectJestVersion.test.ts index b5c6b4da4..7918acaf1 100644 --- a/src/rules/__tests__/detectJestVersion.test.ts +++ b/src/rules/__tests__/detectJestVersion.test.ts @@ -1,8 +1,8 @@ +import { JSONSchemaForNPMPackageJsonFiles } from '@schemastore/package'; import { spawnSync } from 'child_process'; import * as fs from 'fs'; import * as os from 'os'; import * as path from 'path'; -import { JSONSchemaForNPMPackageJsonFiles } from '@schemastore/package'; import { create } from 'ts-node'; import { detectJestVersion } from '../detectJestVersion'; @@ -25,7 +25,7 @@ const runNodeScript = (cwd: string, script: string) => { }; const runDetectJestVersion = (cwd: string) => { - const out = runNodeScript( + return runNodeScript( cwd, ` try { @@ -35,12 +35,6 @@ const runDetectJestVersion = (cwd: string) => { } `, ); - - console.log('status:', out.status); - console.log('stdout:', out.stdout); - console.log('stderr:', out.stderr); - - return out; }; /**