From 4a649f2b9fc3229a8fb1eba8593f3c27a2cc9b27 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 17:47:28 +0100 Subject: [PATCH] Bump @codspeed/vitest-plugin to ^4.0.0 (#15898) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jose Quintas --- pnpm-lock.yaml | 18 +++++++++--------- test/performance-charts/package.json | 2 +- .../tests/BarChart.bench.tsx | 8 +++----- .../tests/BarChartPro.bench.tsx | 8 +++----- .../tests/LineChart.bench.tsx | 8 +++----- .../tests/LineChartPro.bench.tsx | 8 +++----- .../tests/ScatterChart.bench.tsx | 8 +++----- .../tests/ScatterChartPro.bench.tsx | 8 +++----- 8 files changed, 28 insertions(+), 40 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f2240e5286ff..14c28d1abc34 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1652,8 +1652,8 @@ importers: test/performance-charts: devDependencies: '@codspeed/vitest-plugin': - specifier: ^3.1.1 - version: 3.1.1(vite@5.4.11(@types/node@20.17.10)(terser@5.36.0))(vitest@2.1.8) + specifier: ^4.0.0 + version: 4.0.0(vite@5.4.11(@types/node@20.17.10)(terser@5.36.0))(vitest@2.1.8) '@emotion/react': specifier: ^11.14.0 version: 11.14.0(@types/react@18.3.18)(react@18.3.1) @@ -2435,11 +2435,11 @@ packages: '@bundled-es-modules/tough-cookie@0.1.6': resolution: {integrity: sha512-dvMHbL464C0zI+Yqxbz6kZ5TOEp7GLW+pry/RWndAR8MJQAXZ2rPmIs8tziTZjeIyhSNZgZbCePtfSbdWqStJw==} - '@codspeed/core@3.1.1': - resolution: {integrity: sha512-ONhERVDAtkm0nc+FYPivDozoMOlNUP2BWRBFDJYATGA18Iap5Kd2mZ1/Lwz54RB5+g+3YDOpsvotHa4hd3Q+7Q==} + '@codspeed/core@4.0.0': + resolution: {integrity: sha512-B3zwdwLG8rcV0ORfYKX1wDP6ZCWf9C6ySidSf61q2vm9v5Lj2cWwRvj7vX+w/UyFHWKjp/zSyWTEed/r3Fv4Tg==} - '@codspeed/vitest-plugin@3.1.1': - resolution: {integrity: sha512-/PJUgxIfuRqpBSbaD8bgWXtbXxCqgnW89dzr3220fMkx/LA6z6oUb4tJGjeVsOWAzAgu0VBdSA+8hC+7D9BIuQ==} + '@codspeed/vitest-plugin@4.0.0': + resolution: {integrity: sha512-L7oCOuVL2xI1/z+HLt56+7Xs/MGzbaf5aaOys6vOMDAs1PmxbmyAz6g1Y0x1TrP1+dvR9LUZQCKM/CsXHCrNxg==} peerDependencies: vite: ^4.2.0 || ^5.0.0 vitest: '>=1.2.2' @@ -11389,7 +11389,7 @@ snapshots: '@types/tough-cookie': 4.0.5 tough-cookie: 4.1.4 - '@codspeed/core@3.1.1': + '@codspeed/core@4.0.0': dependencies: axios: 1.7.8(debug@4.3.7) find-up: 6.3.0 @@ -11398,9 +11398,9 @@ snapshots: transitivePeerDependencies: - debug - '@codspeed/vitest-plugin@3.1.1(vite@5.4.11(@types/node@20.17.10)(terser@5.36.0))(vitest@2.1.8)': + '@codspeed/vitest-plugin@4.0.0(vite@5.4.11(@types/node@20.17.10)(terser@5.36.0))(vitest@2.1.8)': dependencies: - '@codspeed/core': 3.1.1 + '@codspeed/core': 4.0.0 vite: 5.4.11(@types/node@20.17.10)(terser@5.36.0) vitest: 2.1.8(@types/node@20.17.10)(@vitest/browser@2.1.8)(@vitest/ui@2.1.8)(jsdom@25.0.1)(msw@2.6.6(@types/node@20.17.10)(typescript@5.7.2))(terser@5.36.0) transitivePeerDependencies: diff --git a/test/performance-charts/package.json b/test/performance-charts/package.json index bd1c0dbc7fd1..9644379a9448 100644 --- a/test/performance-charts/package.json +++ b/test/performance-charts/package.json @@ -7,7 +7,7 @@ "test:performance": "vitest bench" }, "devDependencies": { - "@codspeed/vitest-plugin": "^3.1.1", + "@codspeed/vitest-plugin": "^4.0.0", "@emotion/react": "^11.14.0", "@mui/x-charts": "workspace:*", "@mui/x-charts-pro": "workspace:*", diff --git a/test/performance-charts/tests/BarChart.bench.tsx b/test/performance-charts/tests/BarChart.bench.tsx index 2b382867de7c..61bc3d8641a8 100644 --- a/test/performance-charts/tests/BarChart.bench.tsx +++ b/test/performance-charts/tests/BarChart.bench.tsx @@ -1,15 +1,11 @@ import * as React from 'react'; // eslint-disable-next-line no-restricted-imports import { render, cleanup } from '@testing-library/react'; -import { afterEach, bench, describe } from 'vitest'; +import { bench, describe } from 'vitest'; import { BarChart } from '@mui/x-charts/BarChart'; import { options } from '../utils/options'; describe('BarChart', () => { - afterEach(() => { - cleanup(); - }); - const dataLength = 250; const data = Array.from({ length: dataLength + 1 }).map((_, i) => ({ x: i, @@ -41,6 +37,8 @@ describe('BarChart', () => { ); await findByText(dataLength.toLocaleString(), { ignore: 'span' }); + + cleanup(); }, options, ); diff --git a/test/performance-charts/tests/BarChartPro.bench.tsx b/test/performance-charts/tests/BarChartPro.bench.tsx index cc9ba6efb76f..350e528efc17 100644 --- a/test/performance-charts/tests/BarChartPro.bench.tsx +++ b/test/performance-charts/tests/BarChartPro.bench.tsx @@ -1,16 +1,12 @@ import * as React from 'react'; // eslint-disable-next-line no-restricted-imports import { render, cleanup } from '@testing-library/react'; -import { afterEach, bench, describe } from 'vitest'; +import { bench, describe } from 'vitest'; import { BarChartPro } from '@mui/x-charts-pro/BarChartPro'; import { LicenseInfo, generateLicense } from '@mui/x-license'; import { options } from '../utils/options'; describe('BarChartPro', () => { - afterEach(() => { - cleanup(); - }); - const dataLength = 500; const data = Array.from({ length: dataLength + 1 }).map((_, i) => ({ x: i, @@ -48,6 +44,8 @@ describe('BarChartPro', () => { ); await findByText('60', { ignore: 'span' }); + + cleanup(); }, options, ); diff --git a/test/performance-charts/tests/LineChart.bench.tsx b/test/performance-charts/tests/LineChart.bench.tsx index 6b58a45e65b6..81b63a0238e3 100644 --- a/test/performance-charts/tests/LineChart.bench.tsx +++ b/test/performance-charts/tests/LineChart.bench.tsx @@ -1,15 +1,11 @@ import * as React from 'react'; // eslint-disable-next-line no-restricted-imports import { render, cleanup } from '@testing-library/react'; -import { afterEach, bench, describe } from 'vitest'; +import { bench, describe } from 'vitest'; import { LineChart } from '@mui/x-charts/LineChart'; import { options } from '../utils/options'; describe('LineChart', () => { - afterEach(() => { - cleanup(); - }); - const dataLength = 600; const data = Array.from({ length: dataLength }).map((_, i) => ({ x: i, @@ -37,6 +33,8 @@ describe('LineChart', () => { ); await findByText(dataLength.toLocaleString(), { ignore: 'span' }); + + cleanup(); }, options, ); diff --git a/test/performance-charts/tests/LineChartPro.bench.tsx b/test/performance-charts/tests/LineChartPro.bench.tsx index e3cb93565e98..b537c3e836d3 100644 --- a/test/performance-charts/tests/LineChartPro.bench.tsx +++ b/test/performance-charts/tests/LineChartPro.bench.tsx @@ -1,16 +1,12 @@ import * as React from 'react'; // eslint-disable-next-line no-restricted-imports import { render, cleanup } from '@testing-library/react'; -import { afterEach, bench, describe } from 'vitest'; +import { bench, describe } from 'vitest'; import { LineChartPro } from '@mui/x-charts-pro/LineChartPro'; import { LicenseInfo, generateLicense } from '@mui/x-license'; import { options } from '../utils/options'; describe('LineChartPro', () => { - afterEach(() => { - cleanup(); - }); - const dataLength = 600; const data = Array.from({ length: dataLength }).map((_, i) => ({ x: i, @@ -48,6 +44,8 @@ describe('LineChartPro', () => { ); await findByText('60', { ignore: 'span' }); + + cleanup(); }, options, ); diff --git a/test/performance-charts/tests/ScatterChart.bench.tsx b/test/performance-charts/tests/ScatterChart.bench.tsx index 25fa1cf98ace..bae872df6c67 100644 --- a/test/performance-charts/tests/ScatterChart.bench.tsx +++ b/test/performance-charts/tests/ScatterChart.bench.tsx @@ -1,15 +1,11 @@ import * as React from 'react'; // eslint-disable-next-line no-restricted-imports import { render, cleanup } from '@testing-library/react'; -import { afterEach, bench, describe } from 'vitest'; +import { bench, describe } from 'vitest'; import { ScatterChart } from '@mui/x-charts/ScatterChart'; import { options } from '../utils/options'; describe('ScatterChart', () => { - afterEach(() => { - cleanup(); - }); - const dataLength = 1_000; const data = Array.from({ length: dataLength }).map((_, i) => ({ id: i, @@ -36,6 +32,8 @@ describe('ScatterChart', () => { ); await findByText(dataLength.toLocaleString('en-US'), { ignore: 'span' }); + + cleanup(); }, options, ); diff --git a/test/performance-charts/tests/ScatterChartPro.bench.tsx b/test/performance-charts/tests/ScatterChartPro.bench.tsx index 5ae993349104..3fbb015de7e9 100644 --- a/test/performance-charts/tests/ScatterChartPro.bench.tsx +++ b/test/performance-charts/tests/ScatterChartPro.bench.tsx @@ -1,16 +1,12 @@ import * as React from 'react'; // eslint-disable-next-line no-restricted-imports import { render, cleanup } from '@testing-library/react'; -import { afterEach, bench, describe } from 'vitest'; +import { bench, describe } from 'vitest'; import { ScatterChartPro } from '@mui/x-charts-pro/ScatterChartPro'; import { LicenseInfo, generateLicense } from '@mui/x-license'; import { options } from '../utils/options'; describe('ScatterChartPro', () => { - afterEach(() => { - cleanup(); - }); - const dataLength = 50; const data = Array.from({ length: dataLength }).map((_, i) => ({ id: i, @@ -55,6 +51,8 @@ describe('ScatterChartPro', () => { ); await findByText('60', { ignore: 'span' }); + + cleanup(); }, options, );