UNPKG
@graphql-mocks/network-playwright
Version:
latest (0.3.0)
0.3.0
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.1
Mock using graphql-mocks with Playwright
graphql-mocks/graphql-mocks
@graphql-mocks/network-playwright
/
index.d.ts
4 lines
(3 loc)
•
235 B
TypeScript
View Raw
1
2
3
4
import
type
{
Request
,
Route
}
from
'@playwright/test'
;
import
type
{
GraphQLHandler
}
from
'graphql-mocks'
;
export
declare
function
playwrightHandler
(
graphqlHandler
:
GraphQLHandler
):
(
route
:
Route
,
request
:
Request
) =>
Promise
<
void
>;