test(shared): Add workflow expression coverage#9421
Merged
ccastrotrejo merged 3 commits intoJul 17, 2026
Merged
Conversation
Add focused coverage for expression scanning, parsing, building, error handling, dereferences, and template interpolation without changing production behavior. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8899acf2-8354-47c0-a93b-5394e4043078
Undo the unrelated localization extraction produced by the test commit hook so the branch remains test-only. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8899acf2-8354-47c0-a93b-5394e4043078
Contributor
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
✅ Risk Level
✅ What & Why
✅ Impact of Change
✅ Test Plan
✅ Contributors
✅ Screenshots/Videos
Summary Table
All checks pass — this test-only PR is compliant and cleared to merge.Powered by: Copilot CLI (claude-opus-4.8) | Last updated: Fri, 17 Jul 2026 22:12:05 GMT |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds focused Vitest unit coverage for the workflow expression scanner/parser/builder in logic-apps-shared, capturing existing behavior and edge cases without changing production code.
Changes:
- Added scanner tests covering tokenization, punctuation, identifiers, numeric and string literal handling, whitespace, and error cases.
- Added parser tests covering literals, nested functions, dereferences (including safe navigation), alias-path splitting, and template interpolation parsing.
- Added builder tests covering expression/template serialization, escaping rules, dereference emission, and parse→build canonical round-trips.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| libs/logic-apps-shared/src/parsers/lib/expression/test/scanner.spec.ts | New unit coverage for ExpressionScanner tokenization and scanner error behaviors. |
| libs/logic-apps-shared/src/parsers/lib/expression/test/parser.spec.ts | New unit coverage for ExpressionParser AST output across literals, functions, dereferences, alias paths, and templates. |
| libs/logic-apps-shared/src/parsers/lib/expression/test/builder.spec.ts | New unit coverage for ExpressionBuilder serialization and canonical round-trips. |
…t-test-critical-code-paths
ccastrotrejo
enabled auto-merge (squash)
July 17, 2026 22:13
lambrianmsft
approved these changes
Jul 17, 2026
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.
Commit Type
Risk Level
What & Why
The workflow expression scanner, parser, and builder are foundational Logic Apps business logic but previously lacked direct unit coverage. This PR adds 67 focused tests for their established behavior without modifying production code.
The tests cover tokenization and expression limits, literals and nested functions, dereferences and safe navigation, alias-path handling, template interpolation, serialization, round trips, and error paths.
Impact of Change
Test Plan
@microsoft/logic-apps-sharedsuite passed (953 tests, no type errors); GitHub Actions run 29615327286 completed successfully, includingvscode-e2e-summary.Contributors
@ccastrotrejo
Screenshots/Videos
N/A