Skip to content

When running locally, automatically load all snippets from @tscircuit/featured-snippets module #174

Closed
@seveibar

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions