Requirements:
- Clone the repository and install dependencies:
yarn
- Build the project:
yarn build
We use Jest for testing. To run the tests, run yarn test
from the root of the project.
yarn test
or running it in a particular package:
cd packages/searchkit
yarn test
These tests run against mocks of the Elasticsearch API.
Tests are located in the packages/searchkit/src/___tests___/functional
directory.
Mocks are located in the packages/searchkit/src/___tests___/mocks
directory.
We use nock
to mock the HTTP request to Elasticsearch, returning a apprioriate response with a mock.
To run the functional tests, run yarn test
from within the packages/searchkit
directory.
cd packages/searchkit
yarn test