Skip to content

Commit 9874f8a

Browse files
committed
Mock dash_component_api in table tests.
1 parent 8b3c153 commit 9874f8a

File tree

1 file changed

+7
-0
lines changed
  • components/dash-table/tests/visual/percy-storybook

1 file changed

+7
-0
lines changed

components/dash-table/tests/visual/percy-storybook/fixtures.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import {ColumnType, Presentation} from 'dash-table/components/Table/props';
22

3+
// Mock dash 3.0 dash_component_api
4+
(window as any).dash_component_api = {
5+
useDashContext: () => ({
6+
useLoading: () => false
7+
})
8+
};
9+
310
export default [
411
{
512
name: 'fixed rows -> dropdown',

0 commit comments

Comments
 (0)