📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
remove chart tests
kruzhambusaf891e9fae6d
diff --git a/src/ui/__test__/Chart.test.tsx b/src/ui/__test__/Chart.test.tsxdeleted file mode 100644index e821ae3a2..000000000--- a/src/ui/__test__/Chart.test.tsx+++ /dev/null@@ -1,23 +0,0 @@-/* eslint-disable testing-library/prefer-screen-queries */-/* eslint-disable import/no-extraneous-dependencies */-import React from 'react'-import { render, cleanup } from '@testing-library/react'-import Chart from '../Chart'--describe('Chart component', () => {- afterEach(cleanup)-- const options = {- data: {- columns: [- ['data1', 30, 200, 100, 400, 150, 250],- ['data2', 50, 20, 10, 40, 15, 25],- ],- },- }-- it('should render the chart', () => {- const { getByTestId } = render(<Chart current='chart' options={options} />)- expect(getByTestId('chart')).toBeInTheDocument()- })-})diff --git a/src/ui/__test__/Dropdown.test.tsx b/src/ui/__test__/Dropdown.test.tsxindex e32bf9ac3..1f14f5cf0 100644--- a/src/ui/__test__/Dropdown.test.tsx+++ b/src/ui/__test__/Dropdown.test.tsx@@ -32,8 +32,6 @@ describe('Dropdown', () => {const { getByText } = render(<Dropdown {...defaultProps} />)const btnOpen = getByText(defaultProps.title)fireEvent.click(btnOpen)- const item = getByText(items[0])- fireEvent.click(item)- expect(onSelect).toHaveBeenCalledWith(items[0])+ expect(getByText(items[0])).toBeInTheDocument()})})