This PR adds a test case for the VectorStoreIndex class in the packages/core/src/tests directory. The test case focuses on the key methods of the VectorStoreIndex class such as init, fromDocuments, getNodeEmbeddingResults, and buildIndexFromNodes. Mock data is created for the test and the expected outcomes of the method calls are asserted to ensure that the methods are working as expected.
Summary of Changes
Added a new test case for the VectorStoreIndex class in packages/core/src/tests/CallbackManager.test.ts
Created mock data for the test case
Called the methods of the VectorStoreIndex class with the mock data
Asserted the expected outcomes of the method calls
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
packages/core/src/tests
directory. The test case focuses on the key methods of the VectorStoreIndex class such asinit
,fromDocuments
,getNodeEmbeddingResults
, andbuildIndexFromNodes
. Mock data is created for the test and the expected outcomes of the method calls are asserted to ensure that the methods are working as expected.Summary of Changes
packages/core/src/tests/CallbackManager.test.ts
Fixes #4.
To checkout this PR branch, run the following command in your terminal: