Skip to content

Unify test utils - #40

Merged
mauriciogardini merged 4 commits into
feature/typingfrom
feature/test-output
Aug 14, 2025
Merged

Unify test utils#40
mauriciogardini merged 4 commits into
feature/typingfrom
feature/test-output

Conversation

@mauriciogardini

@mauriciogardini mauriciogardini commented Aug 11, 2025

Copy link
Copy Markdown

Unify test utils so all tests share a single interface, that defines all the correct parameters for the Output (externals, namePolicy, etc.).

The interface is:expect(getOutput(program, [<children>])).toRenderTo(<text>)

program can be either a BasicTestRunner, defined with createEmitterFrameworkTestRunner(); or a custom Program, based in a TypeSpec schema, defined with getProgram(<schema text>).

@mauriciogardini
mauriciogardini marked this pull request as ready for review August 11, 2025 20:10
@mauriciogardini
mauriciogardini merged commit 0f07005 into feature/typing Aug 14, 2025
@mauriciogardini mauriciogardini mentioned this pull request Aug 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants