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

@callstack/reassure-cli

Package Overview
Dependencies
Maintainers
9
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@callstack/reassure-cli - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

10

lib/commonjs/commands/measure.js

@@ -31,3 +31,5 @@ "use strict";

});
(0, _child_process.spawnSync)('node', ['--jitless', '--expose-gc', '--no-concurrent-sweeping', '--max-old-space-size=4096', process.env.TEST_RUNNER_PATH ?? 'node_modules/.bin/jest', process.env.TEST_RUNNER_ARGS ?? '--runInBand --testMatch "<rootDir>/**/*.perf-test.[jt]s?(x)"'], {
const testRunnerPath = process.env.TEST_RUNNER_PATH ?? 'node_modules/.bin/jest';
const testRunnerArgs = process.env.TEST_RUNNER_ARGS ?? '--runInBand --testMatch "<rootDir>/**/*.perf-test.[jt]s?(x)"';
const spawnInfo = (0, _child_process.spawnSync)('node', ['--jitless', '--expose-gc', '--no-concurrent-sweeping', '--max-old-space-size=4096', testRunnerPath, testRunnerArgs], {
shell: true,

@@ -41,2 +43,8 @@ stdio: 'inherit',

if (spawnInfo.status !== 0) {
console.error(`❌ Test runner (${testRunnerPath}) exited with error code ${spawnInfo.status}`);
process.exitCode = 1;
return;
}
if ((0, _fs.existsSync)(outputFile)) {

@@ -43,0 +51,0 @@ console.log(`✅ Written ${measurementType} performance measurements to ${outputFile}`);

@@ -18,3 +18,5 @@ import { mkdirSync, rmSync, existsSync } from 'fs';

});
spawnSync('node', ['--jitless', '--expose-gc', '--no-concurrent-sweeping', '--max-old-space-size=4096', process.env.TEST_RUNNER_PATH ?? 'node_modules/.bin/jest', process.env.TEST_RUNNER_ARGS ?? '--runInBand --testMatch "<rootDir>/**/*.perf-test.[jt]s?(x)"'], {
const testRunnerPath = process.env.TEST_RUNNER_PATH ?? 'node_modules/.bin/jest';
const testRunnerArgs = process.env.TEST_RUNNER_ARGS ?? '--runInBand --testMatch "<rootDir>/**/*.perf-test.[jt]s?(x)"';
const spawnInfo = spawnSync('node', ['--jitless', '--expose-gc', '--no-concurrent-sweeping', '--max-old-space-size=4096', testRunnerPath, testRunnerArgs], {
shell: true,

@@ -28,2 +30,8 @@ stdio: 'inherit',

if (spawnInfo.status !== 0) {
console.error(`❌ Test runner (${testRunnerPath}) exited with error code ${spawnInfo.status}`);
process.exitCode = 1;
return;
}
if (existsSync(outputFile)) {

@@ -30,0 +38,0 @@ console.log(`✅ Written ${measurementType} performance measurements to ${outputFile}`);

7

package.json
{
"name": "@callstack/reassure-cli",
"version": "0.3.1",
"version": "0.4.0",
"description": "Performance testing companion for React and React Native",

@@ -42,7 +42,8 @@ "main": "lib/commonjs/index",

"dependencies": {
"@callstack/reassure-compare": "0.1.2",
"@callstack/reassure-compare": "0.1.1",
"yargs": "^17.5.1"
},
"devDependencies": {
"@types/yargs": "^17.0.10"
"react-native-builder-bob": "^0.18.0",
"@types/yargs": "^17.0.13"
},

@@ -49,0 +50,0 @@ "react-native-builder-bob": {

@@ -25,3 +25,6 @@ import { mkdirSync, rmSync, existsSync } from 'fs';

spawnSync(
const testRunnerPath = process.env.TEST_RUNNER_PATH ?? 'node_modules/.bin/jest';
const testRunnerArgs = process.env.TEST_RUNNER_ARGS ?? '--runInBand --testMatch "<rootDir>/**/*.perf-test.[jt]s?(x)"';
const spawnInfo = spawnSync(
'node',

@@ -33,4 +36,4 @@ [

'--max-old-space-size=4096',
process.env.TEST_RUNNER_PATH ?? 'node_modules/.bin/jest',
process.env.TEST_RUNNER_ARGS ?? '--runInBand --testMatch "<rootDir>/**/*.perf-test.[jt]s?(x)"',
testRunnerPath,
testRunnerArgs,
],

@@ -42,2 +45,8 @@ { shell: true, stdio: 'inherit', env: { ...process.env, OUTPUT_FILE: outputFile } }

if (spawnInfo.status !== 0) {
console.error(`❌ Test runner (${testRunnerPath}) exited with error code ${spawnInfo.status}`);
process.exitCode = 1;
return;
}
if (existsSync(outputFile)) {

@@ -44,0 +53,0 @@ console.log(`✅ Written ${measurementType} performance measurements to ${outputFile}`);

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