Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1006 Bytes

DEVELOPMENT.md

File metadata and controls

50 lines (33 loc) · 1006 Bytes

Setting up a development environment

Requirements:

  1. Clone the repository and install dependencies:
yarn
  1. Build the project:
yarn build

Running Tests

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

Functional Tests

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