ENG-1525 Add Vitest and unit tests for roam utils; update package.json#1140
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
f2a5416 to
a8cc9d9
Compare
PR size/scope checkThis PR is over our review-size guideline.
Please split this into smaller PRs unless there is a clear reason the changes need to land together. If keeping it as one PR, please add a brief justification covering:
|
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Motivation
Description
vitestas a devDependency and addtest/test:watchscripts toapps/roam/package.jsonto run the new tests viavitest.apps/roam/src/utils/__tests__for datalog utilities (datalogUtils.test.ts), query firing (fireQuery.test.ts), and query parsing (queryParsing.test.ts).compileDatalog,toVar,gatherDatalogVariablesFromClause,replaceDatalogVariables,fireQuery,fireQuerySync,getDatalogQuery,parseQuery, andgetTitleDatalogbehaviors.Testing
npm run testfrom theapps/roampackage to execute the addedvitestsuites.apps/roam/src/utils/__tests__and will be picked up by thetestscript whenvitestis installed.Codex Task