We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fa60c5 commit 039e414Copy full SHA for 039e414
packages/babel-plugin-component-annotate/test/test-plugin.test.ts
@@ -1836,7 +1836,7 @@ export default function Component${i}() {
1836
avg: times.reduce((a, b) => a + b) / times.length,
1837
min: Math.min(...times),
1838
max: Math.max(...times),
1839
- median: sortedTimes[Math.floor(sortedTimes.length / 2)],
+ median: sortedTimes[Math.floor(sortedTimes.length / 2)] ?? -1,
1840
};
1841
1842
0 commit comments