build(dev-deps): upgrade Jest to major version v30 (#33979)

This commit is contained in:
Đỗ Trọng Hải
2025-07-03 11:01:40 +07:00
committed by GitHub
parent c008190a08
commit 42288c4784
46 changed files with 4535 additions and 1162 deletions

View File

@@ -23,6 +23,7 @@ import {
sharedControls,
sections,
} from '@superset-ui/chart-controls';
import { noop } from 'lodash';
import {
headerFontSize,
subheaderFontSize,
@@ -143,6 +144,7 @@ const config: ControlPanelConfig = {
return true;
},
mapStateToProps(explore, _, chart) {
noop(explore, _, chart);
return {
columnsPropsObject: {
colnames: ['Previous value', 'Delta', 'Percent change'],

View File

@@ -36,7 +36,10 @@ jest.mock('@superset-ui/core', () => ({
jest.mock('../utils', () => ({
getDateFormatter: jest.fn(() => (v: any) => `${v}pm`),
parseMetricValue: jest.fn(val => Number(val)),
getOriginalLabel: jest.fn((metric, metrics) => metric),
getOriginalLabel: jest.fn((metric, metrics) => {
console.log(metrics);
return metric;
}),
}));
describe('BigNumberTotal transformProps', () => {

View File

@@ -39,7 +39,10 @@ jest.mock('@superset-ui/core', () => ({
jest.mock('../utils', () => ({
getDateFormatter: jest.fn(() => (v: any) => `${v}pm`),
parseMetricValue: jest.fn(val => Number(val)),
getOriginalLabel: jest.fn((metric, metrics) => metric),
getOriginalLabel: jest.fn((metric, metrics) => {
console.log(metrics);
return metric;
}),
}));
jest.mock('../../utils/tooltip', () => ({