This PR adds a test case for the VectorStoreIndex class in the LlamaIndexTS repository. The test case covers the main functionalities of the VectorStoreIndex class, including initialization, node embedding retrieval, and document handling. By adding this test case, we can ensure that the VectorStoreIndex class functions as expected and any future changes do not break its functionality.
Summary of Changes
Created a new test file VectorStoreIndex.test.ts in the packages/core/src/tests directory.
Imported the necessary modules and classes for testing, including the VectorStoreIndex class and the jest testing library.
Added test cases for the main functionalities of the VectorStoreIndex class, such as initialization, node embedding retrieval, and document handling.
Each test case has a clear description and uses the expect function from jest to assert the expected results.
Fixes #4.
To checkout this PR branch, run the following command in your terminal:
Description
This PR adds a test case for the VectorStoreIndex class in the LlamaIndexTS repository. The test case covers the main functionalities of the VectorStoreIndex class, including initialization, node embedding retrieval, and document handling. By adding this test case, we can ensure that the VectorStoreIndex class functions as expected and any future changes do not break its functionality.
Summary of Changes
VectorStoreIndex.test.ts
in thepackages/core/src/tests
directory.expect
function from jest to assert the expected results.Fixes #4.
To checkout this PR branch, run the following command in your terminal: