Before running tests, you must build the release binaries:
cargo build --releaseUse the following command to run integration tests:
yarn test:integration <jest cli options>For example:
- Run all tests:
yarn test:integration - Run a specific test file:
yarn test:integration path/to/test.ts - Run tests matching a pattern:
yarn test:integration -t "pattern" - Run in watch mode:
yarn test:integration --watch
You can access the logs of any Yarn command spawned within a test by adding the JEST_LOG_SPAWNS=1 environment variable.
You can setup temporary projects by:
- Creating a new temporary folder
- Adding an empty
package.jsonfile - Running
yarn switch link path/to/target/Release/yarn-bininside this temporary folder - Subsequent
yarncommands should then use the local binary