Skip to content

Commit

Permalink
Remove configs and add RTL modules as peers
Browse files Browse the repository at this point in the history
  • Loading branch information
rtexelm committed Apr 25, 2024
1 parent 9a8c434 commit c2025bb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions superset-frontend/packages/superset-ui-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
"@emotion/cache": "^11.4.0",
"@emotion/react": "^11.4.1",
"@emotion/styled": "^11.3.0",
"@testing-library/dom": "^7.29.4",
"@testing-library/jest-dom": "^5.11.6",
"@testing-library/react": "^11.2.0",
"@testing-library/react-hooks": "^5.1.3",
"@testing-library/user-event": "^12.7.0",
"@types/react": "*",
"@types/react-loadable": "*",
"@types/tinycolor2": "*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,20 @@

import React from 'react';
import { render, screen } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';
import { ThemeProvider, supersetTheme } from '../../../src/style';
import NoResultsComponent from '../../../src/chart/components/NoResultsComponent';

test('renders the no results error', () => {
const renderNoResultsComponent = () =>
render(
<ThemeProvider theme={supersetTheme}>
<NoResultsComponent height="400" width="300" />
</ThemeProvider>,
);

test('renders the no results error', () => {
renderNoResultsComponent();

expect(screen.getByText(/No Results/)).toBeInTheDocument();
expect(
screen.getByText(
Expand Down

0 comments on commit c2025bb

Please sign in to comment.