Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Michael 5fb89d63f2
chore(deps): update vitest to resolve CVE issues (#3016)
6 months ago
..
d3e6528084
docs: vitest integration (#1103)
1 year ago
2a5d88c4b7
chore(openai): update model list (#1219)
1 year ago
00d9aa2926
Add jest integration example
2 years ago
6e4fdcd886
chore: sort imports (#1006)
1 year ago
5fb89d63f2
chore(deps): update vitest to resolve CVE issues (#3016)
6 months ago
d3e6528084
docs: vitest integration (#1103)
1 year ago

README.md

You have to be logged in to leave a comment. Sign In

Prompt Testing with Jest and Vitest

This folder contains a small example of how to test LLM prompts using Jest, Vitest, and promptfoo.

Getting Started

To get started, follow these steps:

  1. Install the dependencies:

    npm install
    
  2. Run the tests:

    To run the tests with Jest:

    npx jest
    

    Or, to run the tests with Vitest:

    npx vitest
    

Additional Information

For more details on integrating prompt testing with Jest and Vitest, see the documentation.

Testing prompts with Jest

Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...