This is the GraphQL server for an internal resource for FxA Admins to access a set of convenience tools.
The GraphQL playground for this package is available at localhost:8095/graphql, providing a GUI for an up-to-date schema and API docs, as well as a way to test queries and mutations.
The playground requires an oidc-claim-id-token-email
authorization header. In production this is supplied through an nginx header after LDAP credentials have been verified but in development, a dummy email should be supplied in the bottom left-hand corner of the GQL playground labeled "HTTP Headers":
{
"oidc-claim-id-token-email": "[email protected]"
}
Hit the "play" button and the schema and docs will populate.
If you need to create a handful of test email bounces in development you can use yarn email-bounce
.
By default this will create a new email bounce for a newly-created dummy account.
Use the --email
flag to create a bounce for an existing account.
Use the --count
flag to create X number of bounces in a single command.
Example: yarn email-bounce --email [email protected] --count 3
This package uses Jest to test its code. By default yarn test
will test all files ending in .spec.ts
.
Test commands:
# Test with coverage
yarn test:cov
# Test on file change
yarn test:watch
MPL-2.0