The Fern repo is primarily written in TypeScript and relies on PnPm for package management.
Once you have cloned or forked the repository, run through the steps below.
pnpm install
To compile all the packages in this monorepo, run pnpm compile
.
To compile a single package, filter to the relevant package: pnpm --filter @fern-api/openapi-parser compile
.
This repo contains both unit tests and integration (end-to-end) tests.
To run all the unit tests: pnpm test
.
To run unit tests for a single package: pnpm --filter @fern-api/openapi-parser test
To run the integration tests: pnpm test:ete
.
Many of our tests rely on snapshot testing. To rewrite snapshots, use pnpm test:update
or pnpm test:ete:update
.