@callstack/reassure-cli
Advanced tools
Comparing version 0.3.1 to 0.4.0
@@ -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}`); |
{ | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
26778
296
2
2
+ Added@callstack/reassure-compare@0.1.1(transitive)
- Removed@callstack/reassure-compare@0.1.2(transitive)