Skip to content

Commit

Permalink
Bump @codspeed/vitest-plugin to ^4.0.0 (#15898)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jose Quintas <[email protected]>
  • Loading branch information
renovate[bot] and JCQuintas authored Dec 23, 2024
1 parent a886d98 commit 4a649f2
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 40 deletions.
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/performance-charts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*",
Expand Down
8 changes: 3 additions & 5 deletions test/performance-charts/tests/BarChart.bench.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -41,6 +37,8 @@ describe('BarChart', () => {
);

await findByText(dataLength.toLocaleString(), { ignore: 'span' });

cleanup();
},
options,
);
Expand Down
8 changes: 3 additions & 5 deletions test/performance-charts/tests/BarChartPro.bench.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -48,6 +44,8 @@ describe('BarChartPro', () => {
);

await findByText('60', { ignore: 'span' });

cleanup();
},
options,
);
Expand Down
8 changes: 3 additions & 5 deletions test/performance-charts/tests/LineChart.bench.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -37,6 +33,8 @@ describe('LineChart', () => {
);

await findByText(dataLength.toLocaleString(), { ignore: 'span' });

cleanup();
},
options,
);
Expand Down
8 changes: 3 additions & 5 deletions test/performance-charts/tests/LineChartPro.bench.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -48,6 +44,8 @@ describe('LineChartPro', () => {
);

await findByText('60', { ignore: 'span' });

cleanup();
},
options,
);
Expand Down
8 changes: 3 additions & 5 deletions test/performance-charts/tests/ScatterChart.bench.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -36,6 +32,8 @@ describe('ScatterChart', () => {
);

await findByText(dataLength.toLocaleString('en-US'), { ignore: 'span' });

cleanup();
},
options,
);
Expand Down
8 changes: 3 additions & 5 deletions test/performance-charts/tests/ScatterChartPro.bench.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -55,6 +51,8 @@ describe('ScatterChartPro', () => {
);

await findByText('60', { ignore: 'span' });

cleanup();
},
options,
);
Expand Down

0 comments on commit 4a649f2

Please sign in to comment.