INTER-2307: Low-hanging test coverage improvements (ecosystem care)#265
Conversation
|
Coverage report
Test suite run success83 tests passing in 24 suites. Report generated by 🧪jest coverage report action from ea8842e Show full coverage report
|
There was a problem hiding this comment.
Pull request overview
Aligns the repository’s “functional tests” naming to “smoke tests” and extends the smoke test script with an optional sealed-results validation path that can be enabled via CI secrets.
Changes:
- Renamed/retargeted workspace + tooling references from
tests/functional-teststotests/smoke-tests(workspace, ESLint, lockfile, workflow). - Updated the GitHub Actions workflow naming/job id and removed an unnecessary “install example deps” step; runs the smoke test from the new directory.
- Added a gated
validateSealedResult()step tosmokeTests.mjsusingunsealEventsResponsewhenBASE64_SEALED_RESULT+BASE64_KEYare present.
Reviewed changes
Copilot reviewed 6 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/smoke-tests/smokeTests.mjs | Adds sealed-result validation and updates imports for unsealing utilities. |
| tests/smoke-tests/package.json | Introduces a workspace package manifest for smoke tests dependencies. |
| tests/smoke-tests/CHANGELOG.md | Adds changelog content for the smoke-tests workspace package. |
| tests/smoke-tests/.env.example | Documents required/optional env vars including sealed-result inputs. |
| tests/functional-tests/.env.example | Removes the old env example as part of the rename/move. |
| pnpm-workspace.yaml | Points pnpm workspace to tests/smoke-tests. |
| pnpm-lock.yaml | Renames the importer key to match tests/smoke-tests. |
| eslint.config.mjs | Updates lint file globs to the new smoke-tests path. |
| .github/workflows/smoke-tests.yml | Renames workflow/job and retargets working directory; wires optional sealed-result secrets; removes redundant example install step. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…sult check - Rename tests/functional-tests -> tests/smoke-tests and the workflow functional_tests.yml -> smoke-tests.yml (name, job id, working-directory) - Update pnpm-workspace, eslint config, and the pnpm-lock importer key - Remove the vestigial 'Install Dependencies for example' workflow step - Add gated validateSealedResult() to smokeTests.mjs (skips unless BASE64_SEALED_RESULT + BASE64_KEY are set) with matching CI env + .env.example
e0386c9 to
d358015
Compare
mcnulty-fp
left a comment
There was a problem hiding this comment.
Looks good. Just a few minor comments.
🚀 Following releases will be created using changesets from this PR:@fingerprint/node-sdk@7.5.0Minor Changes
Patch Changes |
smokeTests.mjstofunctionalTests.mjsand use functional-test terminology in the workflow.pnpm typecheck:examples.validateSealedResult()to unseal a stored fixture and assertidentification.visitor_id.CI fixture
The sealed-result check fails in CI when
BASE64_SEALED_RESULTorBASE64_KEYis missing, but logs a skip locally so contributors do not need the fixture.