test: add angular test matrix#85
Conversation
Coverage report
Test suite run success6 tests passing in 1 suite. Report generated by 🧪jest coverage report action from b46b7f3 Show full coverage report
|
🚀 Following releases will be created using changesets from this PR:@fingerprintjs/fingerprintjs-pro-angular@3.0.0-test.0Major Changes
|
There was a problem hiding this comment.
Pull request overview
Adds an Angular version test matrix to validate the library across Angular 15–21, with supporting Node/pnpm configuration for CI and local test execution.
Changes:
- Adds a GitHub Actions workflow for Angular matrix testing.
- Adds a local
bin/test-matrix.shhelper script with similar matrix logic. - Updates Node/test configuration and ignores generated test artifacts.
Reviewed changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/test-matrix.yml |
Adds PR workflow to build and test the library across Angular versions. |
bin/test-matrix.sh |
Adds local shell script for running the same Angular matrix. |
package.json |
Adds Node engine requirement. |
.node-version |
Sets the repository Node version to 22. |
.gitignore |
Ignores pnpm store and matrix test logs. |
projects/fingerprintjs-pro-angular/tsconfig.spec.json |
Adds Node types for specs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| for FILE in "tsconfig.json" "tsconfig.base.json" "projects/$LIB_NAME/tsconfig.spec.json"; do | ||
| if [ -f "$FILE" ]; then | ||
| sedi '/"types":/d' "$FILE" | ||
| sedi '/"esModuleInterop":/d' "$FILE" | ||
| sedi '/"allowSyntheticDefaultImports":/d' "$FILE" | ||
| sedi '/"skipLibCheck":/d' "$FILE" | ||
| sedi 's/"compilerOptions":\s*{/"compilerOptions": { "types": ["node", "jest"], "esModuleInterop": true, "allowSyntheticDefaultImports": true, "skipLibCheck": true,/g' "$FILE" | ||
| fi | ||
| done | ||
|
|
||
| find . -name "tsconfig.spec.json" -exec bash -c 'sed -i "s/\"types\":\s*\[/\"types\": [\"node\", \"jest\", /g" "$1"' _ {} \; | ||
| find . -name "tsconfig.spec.json" -exec bash -c 'sed -i "s/\"compilerOptions\":\s*{/\"compilerOptions\": { \"types\": [\"node\", \"jest\"], \"esModuleInterop\": true, \"allowSyntheticDefaultImports\": true, \"skipLibCheck\": true,/g" "$1"' _ {} \; | ||
|
|
No description provided.