mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
build(dev-deps): upgrade Jest to major version v30 (#33979)
This commit is contained in:
@@ -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'],
|
||||
|
||||
@@ -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', () => {
|
||||
|
||||
@@ -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', () => ({
|
||||
|
||||
Reference in New Issue
Block a user