chore(sltt-app): delete local-doc- files but handle in handleStoreDoc() if isFromRemote is true #24
How does it all work?
docs.test.ts contains the unit tests and is run by calling yarn test from the terminal
What particularly has changed?
several local and remote docs were added and used as the test data and the three functions in docs.ts (handleStoreDoc, handleListDoc, handleRetrieveDoc) are called and tested.
added remove semicolons for js/ts formatting
update @types/node to 18.0.0 and add vitest@2.0.4
refactored storage/index.ts to include core.ts and docs.ts
fix -lost.sltt-doc filter
fix modBy response in retrieveDoc
change retrieveDoc response to include filenameX
normalize WriteDocResponse and include freshlyWritten
fix should strip remote docs, but list earlier local docs
fix handleStoreDoclocalFilenames.includes
add deletion of obsoleted local files that in remote files in handleStoreDoc
Steps for testing
open the sltt workspace (from client) and in the terminal run "yarn start:sltt-app:client"
in a new VSCode window open the sltt-app workspace and in a terminal run "yarn test"
What issue(s) is this trying to resolve?
How does it all work?
What particularly has changed?
@types/node
to18.0.0
and addvitest@2.0.4
storage/index.ts
to includecore.ts
anddocs.ts
-lost.sltt-doc
filtermodBy
response inretrieveDoc
retrieveDoc
response to includefilenameX
WriteDocResponse
and includefreshlyWritten
handleStoreDoc
localFilenames.includes
handleStoreDoc
Steps for testing
(co-authored by Ellis Benus)
ticket: https://github.com/ubsicap/sltt-app/issues/21 ticket: https://github.com/ubsicap/sltt-app/issues/24 commit-convention: https://www.conventionalcommits.org/en/v1.0.0/