Skip to content

Commit

Permalink
Fix decouple auth related type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Oct 14, 2022
1 parent 5394515 commit eeda518
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createSpiedPlugin, createTestkit } from '@envelop/testing'
import { testSchema, testQuery } from '../__fixtures__/common'
import { useRedwoodAuthContext } from '../useRedwoodAuthContext'

const authDecoder = (token: string) => ({ token })
const authDecoder = async (token: string) => ({ token })

jest.mock('@redwoodjs/api', () => {
return {
Expand Down
4 changes: 4 additions & 0 deletions packages/web/src/components/FetchConfigProvider.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* @jest-environment jsdom
*/

import React from 'react'

import { render, screen, waitFor } from '@testing-library/react'

import type { AuthContextInterface } from '@redwoodjs/auth'
Expand Down Expand Up @@ -31,6 +33,7 @@ describe('FetchConfigProvider', () => {
unknown,
unknown,
unknown,
unknown,
unknown
>)
}
Expand Down Expand Up @@ -59,6 +62,7 @@ describe('FetchConfigProvider', () => {
unknown,
unknown,
unknown,
unknown,
unknown
>)
}
Expand Down

0 comments on commit eeda518

Please sign in to comment.