@auth0/actions NPM package, you can write unit tests for your Actions and run them locally, in version control, or in a CI/CD process, catching issues before they reach your Auth0 tenant.
How it works
Follow the installation and import guidelines described at: How Actions NPM works. To unit test an Action, you must mock theevent and api objects that your Action function receives. You can create these mocks using the TypeScript definitions included in auth0/actions, which ensures your tests accurately reflect the production environment. Testing frameworks like Jest are ideal for managing mocking and functionality.