Skip to content

Commit

Permalink
fix: login and signup component unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kgajera committed Jun 18, 2021
1 parent a98e956 commit a6b7b4f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions packages/create-bison-app/template/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@
"@graphql-codegen/typescript-operations": "^1.18.0",
"@graphql-codegen/typescript-react-apollo": "^2.2.5",
"@graphql-codegen/typescript-resolvers": "^1.19.2",
"@testing-library/cypress": "^7.0.2",
"@testing-library/dom": "^7.21.7",
"@testing-library/jest-dom": "^5.11.2",
"@testing-library/react": "^10.4.7",
"@testing-library/user-event": "^12.0.17",
"@testing-library/cypress": "^7.0.6",
"@testing-library/dom": "^7.31.2",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^13.1.9",
"@types/bcryptjs": "^2.4.2",
"@types/chance": "^1.1.1",
"@types/jest": "^26.0.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import { render, waitFor, userEvent } from '../../utils';
import { LoginForm } from '../../../components/LoginForm';

describe.skip('LoginForm', () => {
describe('LoginForm', () => {
describe('with no inputs', () => {
it('shows errors', async () => {
const { getByLabelText, getByText } = render(<LoginForm />);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import { render, waitFor, userEvent } from '../../utils';
import { SignupForm } from '../../../components/SignupForm';

describe.skip('SignupForm', () => {
describe('SignupForm', () => {
it('loads', async () => {
expect(() => {
render(<SignupForm />);
Expand Down
2 changes: 1 addition & 1 deletion packages/create-bison-app/template/tests/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const mockRouter: NextRouter = {
replace: jest.fn(),
reload: jest.fn(),
back: jest.fn(),
prefetch: jest.fn(),
prefetch: jest.fn(() => Promise.resolve()),
beforePopState: jest.fn(),
events: {
on: jest.fn(),
Expand Down

0 comments on commit a6b7b4f

Please sign in to comment.