Skip to content

Commit be9b24f

Browse files
committed
updated jest config file
1 parent 55cdab1 commit be9b24f

File tree

4 files changed

+700
-404
lines changed

4 files changed

+700
-404
lines changed

__tests__/components/SignUp.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ xdescribe('Create Signup Page', () => {
1818
);
1919
});
2020

21-
it('should render', () => {
21+
xit('should render', () => {
2222
expect(screen).toBeTruthy();
2323
});
2424

25-
it('Should contain an h1, h2, form, two buttons, and three inputs', () => {
25+
xit('Should contain an h1, h2, form, two buttons, and three inputs', () => {
2626
const element = screen.getByTestId('SignUp');
2727
expect(element.querySelectorAll('h1').length).toBe(1);
2828
expect(element.querySelectorAll('h2').length).toBe(1);
@@ -31,7 +31,7 @@ xdescribe('Create Signup Page', () => {
3131
expect(element.querySelectorAll('input').length).toBe(4);
3232
});
3333

34-
it('Sign up button should submit email, username, and password to addUser', async () => {
34+
xit('Sign up button should submit email, username, and password to addUser', async () => {
3535
screen.debug();
3636

3737
const username = screen.getByPlaceholderText('enter username');

jest.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ const config: Config.InitialOptions = {
1818
'/__tests__/charts/HealthChart.test.tsx',
1919
'/__backend-tests__',
2020
],
21+
transformIgnorePatterns: [
22+
'<rootDir>/node_modules/(?!d3|internmap|delaunator|robust-predicates|three-forcegraph|three|three-render-objects|3d-force-graph)'
23+
],
2124
// Specify the test path files/patterns to ignore
2225

2326
};

0 commit comments

Comments
 (0)