Amplify-js: Is it possible to use AWS Amplify with a testing framework like Jasmine?

Created on 14 Jun 2018  路  3Comments  路  Source: aws-amplify/amplify-js

I am quite happy using React and AWS Amplify on a personal project, it works like a charm against the Cognito Authentication.

Buuuut I was wondering... Is it possible to use AWS Amplify to test Cognito endpoints or at least the login with a testing framework like Jasmine?

Thanks in advance.

question

Most helpful comment

@josoroma AWS Amplify uses jest for unit testing. For integration test you can use something like cypress

All 3 comments

@josoroma AWS Amplify uses jest for unit testing. For integration test you can use something like cypress

@elorzafe I will take a look, thanks a bunch. Will be great to find some sample codes ;)

Hey @josoroma,

Here are some cypress recipes related to testing sign in:
https://docs.cypress.io/examples/examples/recipes.html#Single-Sign-On

If you have an existing app using AWS Amplify and Cognito, it is fairly easy to start using Cypress to test your Cognito interaction.

I am going to close this issue for now, but please reopen if you have any more questions or comments.

Was this page helpful?
0 / 5 - 0 ratings