test: add comprehensive unit and e2e test coverage#200
Merged
dianaKhortiuk-frontegg merged 3 commits intonextfrom Apr 14, 2026
Merged
test: add comprehensive unit and e2e test coverage#200dianaKhortiuk-frontegg merged 3 commits intonextfrom
dianaKhortiuk-frontegg merged 3 commits intonextfrom
Conversation
Increase test coverage from ~17% to ~89% across the SDK. - Add 14 new unit spec files covering authenticator, identity token-resolvers, exceptions, events client, redis cache, package-loader, and entitlements helpers/mappers/storage utilities - Add e2e test suite (8 flows) against real Frontegg sandbox, gated behind env vars and excluded from CI (run manually via npm run test:e2e) - Add shared test utilities in src/__test-utils__/ - Raise coverage thresholds from 17/24/20/18 to 70/70/65/70 - Add jest.e2e.config.js, .env.e2e.example, npm run test:e2e script Unit: 28 suites, 228 tests E2E: 8 suites, 22 tests (manual only, not in CI) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Fix max-len in fixtures.ts (break long import) - Add eslint-env node to jest.e2e.config.js - Remove unused vars in e2e tests Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- axios ^1.7.4 → ^1.15.0 (fixes GHSA-43fc-jf86-j433, GHSA-3p68-rc4w-qgx5, GHSA-fvcv-3m26-pcqx) - jsonwebtoken ^9.0.2 → ^9.0.3 (fixes GHSA-869p-cjfg-cm3x via jws upgrade) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
npm run test:e2eCoverage
Test counts
E2E note
E2E tests are excluded from CI. They live in
src/__e2e__/and are picked up only byjest.e2e.config.js(separate from the mainjest.config.js). Run locally with:Requires
FRONTEGG_API_KEYandFRONTEGG_CLIENT_IDenv vars (see.env.e2e.example).Test plan
npm testpasses (228 unit tests green)npm run test:e2epasses locally (22 e2e tests green)tsc --noEmit)🤖 Generated with Claude Code