-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
move testing to vitest #83
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @bmschmidt and the rest of your teammates on |
tests/project.test.ts
Outdated
'Index actually builds and is returned from server', | ||
async () => { | ||
await project.wait_for_lock(); | ||
index = (await project.indices())[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add error handling for the API call to project.indices()
to ensure robustness in case of failures.
da4f0e2
to
ecd2422
Compare
@@ -1,7 +1,6 @@ | |||
import { test } from 'uvu'; | |||
import { test } from 'vitest'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { test } from 'vitest'; | |
import { test, expect } from 'vitest'; |
@@ -16,7 +15,7 @@ test('Embed a point from an env token', async () => { | |||
// Pulling the API key from env variable. | |||
const values = await embed(strings); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API calls should include error handling to manage potential failures.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no new import?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, address human and bot comments
should we add a CI check for test passing? and isn't there a tsc
check as well?
Still failing a test on wait_for_project_lock.
Important
Migrate testing framework from
uvu
tovitest
, updating test scripts, dependencies, and test files accordingly.uvu
withvitest
inpackage.json
test scripts.uvu
and related dependencies; addvitest
.vitest.config.ts
for configuration..js
to.ts
(e.g.,arrow.test.js
toarrow.ts
).uvu
tovitest
inembedding.test.ts
,neighbors.test.ts
,project.test.ts
, anduser.test.ts
.assert
withexpect
in test assertions.project.test.js
and replace withproject.test.ts
with updated test cases.This description was created by
for ecd2422. It will automatically update as commits are pushed.