mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore(lint): migrate Jest lint rules from eslint to oxlint (#37787)
Signed-off-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
@@ -77,8 +77,8 @@ const mockSvg = {
|
||||
style: jest.fn().mockReturnThis(),
|
||||
};
|
||||
|
||||
jest.mock('datamaps/dist/datamaps.all.min', () => {
|
||||
return jest.fn().mockImplementation(config => {
|
||||
jest.mock('datamaps/dist/datamaps.all.min', () =>
|
||||
jest.fn().mockImplementation(config => {
|
||||
// Call the done callback immediately to simulate Datamap initialization
|
||||
if (config.done) {
|
||||
config.done({
|
||||
@@ -90,8 +90,8 @@ jest.mock('datamaps/dist/datamaps.all.min', () => {
|
||||
updateChoropleth: mockUpdateChoropleth,
|
||||
svg: mockSvg,
|
||||
};
|
||||
});
|
||||
});
|
||||
}),
|
||||
);
|
||||
|
||||
let container: HTMLElement;
|
||||
const formatter = getNumberFormatter();
|
||||
|
||||
Reference in New Issue
Block a user