Skip to content

Commit

Permalink
Adding jest-dom (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShahanaFarooqui authored May 20, 2024
1 parent 281f4db commit 181ec4e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/frontend/src/components/App/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { act, render, screen } from '@testing-library/react';
import App, { rootRouteConfig } from './App';
import { RouterProvider, createMemoryRouter } from 'react-router-dom';
import { cleanup } from "@testing-library/react";
import '@testing-library/jest-dom/extend-expect';

jest.mock('../../services/logger.service', () => ({
__esModule: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { render, screen } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import Bookkeeper from './BkprRoot';

jest.mock('react-router-dom', () => ({
Expand Down
1 change: 1 addition & 0 deletions apps/frontend/src/components/cln/BTCCard/BTCCard.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { render, screen } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import BTCCard from './BTCCard';

describe('BTCCard component ', () => {
Expand Down
1 change: 1 addition & 0 deletions apps/frontend/src/components/cln/CLNCard/CLNCard.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { render, screen } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import CLNCard from './CLNCard';

describe('CLNCard component ', () => {
Expand Down
1 change: 1 addition & 0 deletions apps/frontend/src/components/cln/CLNHome/CLNHome.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { render, screen } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import CLNHome from './CLNHome';

describe('CLNHome component ', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { render, screen } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import ChannelsCard from './ChannelsCard';

describe('ChannelsCard component ', () => {
Expand Down

0 comments on commit 181ec4e

Please sign in to comment.