Skip to content

Conversation

@mnahkies
Copy link
Owner

  • introduce a new ISchemaProvider interface to make unit testing TypeBuilder easier
  • splits the TypeBuilder test suite into unit tests that use the IRModel representations directly, and integration tests that go the whole way from disk through to the TypeBuilder
  • additionally significantly speed up the use of the the typescript compiler in tests, by caching unchanged ts.SourceFile representations and enabling skipLibCheck (between both takes it from ~20s -> <1s)
    • remove unused worker thread variant, its fast enough that the overhead marshaling between worker thread will not be worth it.

- introduce narrow interface to allow for a fake input
  to be used in tests easily

- write tests to cover type building starting from IRModel
  representation rather than going the whole way through form
  openapi spec on disk to result
@mnahkies mnahkies merged commit 9a558e2 into main Dec 30, 2025
22 checks passed
@mnahkies mnahkies deleted the mn/test/improve-type-builder-unit-tests branch December 30, 2025 11:08
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