Skip to content

Commit

Permalink
Remove circular dep.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterp committed Aug 7, 2020
1 parent 554b9c1 commit c0fdcd9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
11 changes: 11 additions & 0 deletions packages/testing/src/global.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* eslint-disable no-redeclare */
/* eslint-disable no-undef */
import type {
mockGraphQLQuery as _mockGraphQLQuery,
mockGraphQLMutation as _mockGraphQLMutation,
} from './mockRequests'

declare global {
const mockGraphQLQuery: typeof _mockGraphQLQuery
const mockGraphQLMutation: typeof _mockGraphQLMutation
}
6 changes: 0 additions & 6 deletions packages/web/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
import type _React from 'react'
import type _gql from 'graphql-tag'
import type _PropTypes from 'prop-types'
import type {
mockGraphQLMutation as _mockGraphQLMutation,
mockGraphQLQuery as _mockGraphQLQuery,
} from '@redwoodjs/testing'
import type {
useSubscription as _useSubscription,
useLazyQuery as _useLazyQuery,
Expand All @@ -20,8 +16,6 @@ declare global {
const React: typeof _React
const gql: typeof _gql
const PropTypes: typeof _PropTypes
const mockGraphQLQuery: typeof _mockGraphQLQuery
const mockGraphQLMutation: typeof _mockGraphQLMutation
}

declare module '@redwoodjs/web' {
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
{ "path": "packages/api" },
{ "path": "packages/dev-server" },
{ "path": "packages/auth" },
{ "path": "packages/forms" },
],
"files": []
}

0 comments on commit c0fdcd9

Please sign in to comment.