We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 454c1b5 commit d64cba4Copy full SHA for d64cba4
src/app/__tests__jn/WebMetrics.test.tsx
@@ -0,0 +1,13 @@
1
+import React from 'react';
2
+import { render } from '@testing-library/react';
3
+import '@testing-library/jest-dom/extend-expect';
4
+import WebMetrics from '../components/WebMetrics';
5
+
6
+jest.mock('react-apexcharts', () => ({ __esModule: true, default: () => <div /> }));
7
8
+describe('WebMetrics graph testing', () => {
9
+ test('should have 1 div with class name "metric" ', () => {
10
+ const { container } = render(<WebMetrics />);
11
+ expect(container.getElementsByClassName('metric').length).toBe(1);
12
+ });
13
+});
0 commit comments