Description
The hardest part of this task is the typescript/javascript has to be compiled. This can be accomplished by importing CodeRunner
from @tscircuit/prompt-benchmarks
You'll also have to compile the typescript to dts, this can also be pretty tricky
You should do this inside a vite plugin when the server first starts IF started in development mode (I don't think we want to start it for every playwright test like this)
If it takes a long time to build, we might want to reconsider our approach and load snippets from production or something using https://registry-api.tscircuit.com/snippets/list_trending
, we could also have a list of snippets to load in using a txt file.
The point is I want some real-world snippets loaded into snippets when developing- it's better for testing things out
Activity