Add unit tests for autoSaveService to handle document dirty states and periodic saves
- Implement tests for various scenarios including user edits, initial dirty state, and document changes. - Ensure proper flagging of uncommitted changes and silent saves for documents opened in a dirty state. - Test debounce behavior for document change notifications and version clearing functionality. - Validate suspension and resumption of auto-saving during versioning processes.
This commit is contained in:
parent
0b6ee8cc84
commit
454c90d17e
17 changed files with 1167 additions and 33 deletions
|
|
@ -3,11 +3,14 @@
|
|||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"dev": "npm run db:prepare && next dev",
|
||||
"dev:server": "next dev",
|
||||
"build": "next build",
|
||||
"test": "vitest run",
|
||||
"start": "next start",
|
||||
"seed-samples": "node --env-file=.env scripts/seed-samples.mjs",
|
||||
"db:prepare": "docker compose up -d --wait && node --env-file=.env scripts/migrate.mjs && node --env-file=.env scripts/seed-samples.mjs",
|
||||
"db:reset": "docker compose down && docker volume rm judes-note-db-data judes-note-minio-data && npm run db:prepare",
|
||||
"addin:install": "node scripts/install-wordaddin.mjs",
|
||||
"postinstall": "node scripts/patch-pdf-worker.mjs && node scripts/copy-swagger-ui.mjs && node scripts/fetch-office-js.mjs",
|
||||
"dev:https": "next dev --experimental-https",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue