This package is a helper to run Palantir Foundry Typescript Repository tests in a local environment.
Install the package in the root of the project:
npm i --no-save foundry-offline-ts-test
To run all tests run (in your project folder):
npx foundry-test
To run a specific test file
npx foundry-test --runTestsByPath path/to/test/file
In general, you can pass all normal jest
options.
To make test work in IntelliJ, you have to edit the test configuration,
in particular the "Jest Package" option, which should be set to the path of
the foundry-offline-ts-test
module. This can be found in the node_modules
folder where you installed the package.
The other configuration options are not important, only "Working Directory" needs to be somewhere within the project.