Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion private/react-native-fantom/src/Benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ export function suite(
'Failing focused test to prevent it from being committed',
);
}
reportBenchmarkResult(createBenchmarkResultsObject(bench, tasks));
if (!isTestOnly) {
reportBenchmarkResult(createBenchmarkResultsObject(bench, tasks));
}
});

const test = (name: string, fn: SyncFn, options?: FnOptions): SuiteAPI => {
Expand Down
4 changes: 4 additions & 0 deletions scripts/fantom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@ for arg in "$@"; do
esac
done

if [[ -n "$FANTOM_RUN_BENCHMARKS" ]]; then
ARGS+=("--runInBand")
fi

yarn jest --config private/react-native-fantom/config/jest.config.js "${ARGS[@]}"
Loading