dsherret / dsherret/ts-morph

What's the best approach to test ts-morph AST transformations?

Open
#1,625 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6.2k
Forks
238
Avg merge
2m
Merged PRs (30d)
1

Description

What's the best approach to test ts-morph AST transformations?

1. Writing specific assertions by querying nodes?
2. Or using snapshot testing to compare the generated source?

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by reviewing existing ts-morph AST transformation tests, then compare node-level assertions with generated-source snapshots; done would be a documented, project-backed recommendation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing-qa
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.