npm-packages/component-tests/README.md
This directory is used for application-level component tests.
The application-level component tests go through the push codepath to analyze, upload modules, and set up the component model in system tables in the database.
These tests simulate a push by reading from pre-written StartPushRequests from
the isolate/build.rs script, which runs
npx convex deploy --start-push-request for convex projects in the projects
directory in this directory.
To test a new component layout,
projects directory. The project should have a convex
folder inside and convex.config.ts (If your test does not use components,
use udf-tests).COMPONENT_TESTS_PROJECTS in `isolate/build.rs.rush.json.just rush update.application/src/tests/components.rs.To test a new component, add the component to this directory (component-tests)
and COMPONENTS in isolate/build.rs. Use it in a project in the projects
directory by installing it in the project's convex.config.ts.