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 c514791528
chore(deps): update all example dependencies to latest versions (#4900)
1 month ago
..
360d7b519d
docs(examples): add uniform init commands to all example READMEs (#4068)
3 months ago
c514791528
chore(deps): update all example dependencies to latest versions (#4900)
1 month ago
00d9aa2926
Add jest integration example
2 years ago
c514791528
chore(deps): update all example dependencies to latest versions (#4900)
1 month ago
c514791528
chore(deps): update all example dependencies to latest versions (#4900)
1 month ago
d3e6528084
docs: vitest integration (#1103)
1 year ago

README.md

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

jest-integration (Prompt Testing with Jest and Vitest)

You can run this example with:

npx promptfoo@latest init --example jest-integration

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...