This folder houses some e2e tests. You can run them by: pnpm test (this assumes you've already ran pnpm i), however there are a few extra steps:
-
Some tests use puppeteer framework which requires a dev build of the chrome browser. This is a one time setup step. Run
npx puppeteer browsers install chrome -
The test will attempt to install genkit packages from the
distfolder up in the root folder, so if you want to test agaisnt the latest build of your local source you'll need to build and pack it first.to build, it's OK to use
build:watchin specific package folders that you're working on, or re-build only the individual packages by runningnpm run buildthere.To rebuild everything (slow but guaranteed clean build) from the root run:
pnpm buildto pack what you already built, you can run
pnpm packfrom most package folders, but you can also from the root run:pnpm pack:allwhich will pack everything (it's pretty fast).
In the root package.json there's a
test:e2escript that should handle all these steps.