<@U04UQ68083H> Are there test utilities or mocks t...
# ory-copilot
b
@chilly-king-10285 Are there test utilities or mocks that Ory provides for JavaScript for writing tests?
c
A message from kapa.ai
Ory provides a library called
@ory/elements-test
for end-to-end testing of login, registration, recovery, verification, and settings flows. This library is used in the examples provided by Ory Elements. The tests are located in the
e2e
folder and are based on the Playwright library. To run the tests, you can execute the
npm run test
command inside the example directory. For more information, you can refer to the [Ory documentation](https://www.ory.sh/docs/kratos/bring-your-own-ui/custom-ui-ory-elements#end-to-end-tests).