matt wilkie
5999dabd0b
test fix: sqlite no such table entity_changes
...
claude:
I've updated the test file to:
Add the entity_changes table with all required fields
Add missing fields to the notes table (isDeleted)
Add missing fields when inserting the parent note
2024-11-16 21:39:08 -07:00
matt wilkie
9cd398d1ce
test fix: setup CLS context
...
claude sez: "I see the issue. The tests are failing because we need to set up the CLS (Continuation Local Storage) context that Trilium uses for transactions. Let me check how this is handled in other tests:
I've updated the test file to:
I've updated the test file to:
Use an in-memory database for testing
Set up necessary database tables in beforeEach
Wrap all database operations in cls.init() and sql.transactional()
Handle async operations properly
2024-11-16 21:36:07 -07:00
matt wilkie
e397011437
test fix: describe not defined
...
"$ npx tsx spec/services/import/single.spec.ts
/home/mhw/dev/tnext/spec/services/import/single.spec.ts:6
describe('HTML Import', () => {
^
ReferenceError: describe is not defined
at <anonymous> (/home/mhw/dev/tnext/spec/services/import/single.spec.ts:6:1)
Node.js v18.17.1"
2024-11-16 21:26:26 -07:00
matt wilkie
a1ff4bb132
test fix: do not access content directly
...
"TSError: ⨯ Unable to compile TypeScript:
spec/services/import/single.spec.ts:137:25 - error TS2339: Property 'content' does not exist on type 'BNote'."
2024-11-16 21:21:24 -07:00
matt wilkie
14d7e3e1ce
test: attempt fix test import error by using importSinglefile instead of importHtml
2024-11-16 21:17:50 -07:00
maphew
3a7564f733
a missed .ts file
2024-11-16 09:45:13 -07:00
Elian Doran
42f0073ab6
server: Fix various imports
2024-07-24 20:31:26 +03:00
Elian Doran
76fcea7189
server: Fix missing .js import for rows file
2024-07-24 20:20:20 +03:00
Elian Doran
10239d1a0b
Merge branch 'feature/server_esm_part2' into feature/server_esm_part3
2024-07-22 20:20:34 +03:00
Elian Doran
f0a561565e
Merge branch 'feature/server_esm' into feature/server_esm_part2
2024-07-22 20:15:49 +03:00
Elian Doran
e53b7dd297
Merge remote-tracking branch 'origin/develop' into feature/server_esm
2024-07-22 19:59:44 +03:00
Elian Doran
b6c5880484
server-esm: Fix use of __dirname
2024-07-19 00:18:35 +03:00
Elian Doran
f4d19e2bc1
server-esm: Solve some more imports
2024-07-18 22:58:12 +03:00
Elian Doran
0c87fab550
server-esm: Fix wonderful token type mismatch
2024-07-18 22:18:10 +03:00
Elian Doran
1dc894e279
server-esm: Fix the remaining compilation errors
2024-07-18 21:56:20 +03:00
Elian Doran
0ceae0a65e
server-esm: Change some more export object to export default object
2024-07-18 21:47:30 +03:00
Elian Doran
2750df04a3
server-esm: Change simple library import statements
2024-07-18 21:37:45 +03:00
Elian Doran
35d11cc0d2
server-esm: Change simple local import statements
2024-07-18 21:35:17 +03:00
Elian Doran
8fb67c9766
server-esm: Normalize quotes in require imports
2024-07-18 21:28:51 +03:00
Elian Doran
9dc22264f4
test: Add additional context for failed test
2024-07-15 22:36:09 +03:00
Elian Doran
80d2a69f47
test: Ignore tests that are failing upstream due to "no such table: notes"
2024-07-15 22:31:04 +03:00
Elian Doran
e393914b94
tests: Align with original repo
...
Apparently upstream does not run all the tests, the beforeAll() is not
even executed. On our side it was, causing a lot of errors related to
timeouts.
2024-07-15 22:24:14 +03:00
Alex
fcb30f6319
feat: migrate jasmine tests to ts
2024-05-08 23:59:11 +02:00
Alex
e7f11d6687
enable jasmine test runs
2024-05-03 21:18:20 +02:00
Elian Doran
2fbd2e3c29
server-ts: Port services/search/services/search
2024-02-18 11:16:30 +02:00
Elian Doran
15169289f0
server-ts: Port services/search/services/parse
2024-02-18 02:27:04 +02:00
Elian Doran
533a597a5c
server-ts: Port services/search/services/lex
2024-02-18 01:46:32 +02:00
Elian Doran
deed58c2fc
server-ts: Port services/search/services/handle_parens
2024-02-18 01:38:51 +02:00
Elian Doran
216f3f2c07
server-ts: Port services/search/value_extractor
2024-02-18 00:34:36 +02:00
Elian Doran
fbf77f3382
server-ts: Port services/search/search_context
2024-02-18 00:28:05 +02:00
Elian Doran
7a9365457a
server-ts: utils.js -> utils.ts
2024-02-17 13:32:41 +02:00
zadam
cf99345962
use .js extension for require() as a preparation for future migration to ESM
2023-11-22 19:34:48 +01:00
zadam
889cb1d7b1
Merge branch 'stable'
...
# Conflicts:
# package.json
2023-11-03 12:15:39 +01:00
zadam
0efc42081d
more tests
2023-11-01 00:41:35 +01:00
zadam
695c9d5cf3
more note etapi tests
2023-10-30 23:51:53 +01:00
zadam
8690228d98
etapi test infrastructure plus a basic note creation test
2023-10-29 23:24:11 +01:00
zadam
01093d05d7
qswitch-electron, qswitch-server npm scripts
2023-10-29 18:39:53 +01:00
zadam
7b662b04ff
fix orderby with multiple labels, closes #4220
2023-09-05 23:00:08 +02:00
zadam
f8e4a665bd
fixed search parser tests
2023-09-05 22:48:20 +02:00
zadam
579ed7e194
attachment content rendering
2023-05-21 18:14:17 +02:00
zadam
6f7b554cdc
preparing 0.59 without ocr/pdf, userguide, note ancillaries
2023-02-17 14:49:45 +01:00
zadam
c190296bf9
refactoring
2023-02-13 16:22:34 +01:00
zadam
bff7434921
rename becca entities to have B-prefix, #3476
2023-01-03 13:52:37 +01:00
zadam
f809da58ec
fix occurrences of 'root' branch
2022-12-28 13:09:49 +01:00
zadam
dfb462cf35
introduced new exception classes for structured error reporting
2022-12-09 16:13:22 +01:00
zadam
b499640db8
use trilium version number in asset paths to avoid caching issues WIP
2022-10-26 23:50:54 +02:00
zadam
86d3a695ac
fix handling of parenthesis without explicit AND operator, closes #3096
2022-08-28 14:40:24 +02:00
zadam
91d23c540a
refactored note_content_protected_fulltext.js and note_content_unprotected_fulltext.js into one class
2022-05-11 21:33:41 +02:00
zadam
91dec23d5e
ETAPI auth, spec improvements etc.
2022-01-10 17:09:20 +01:00
zadam
b8eeb0371c
fixed bug in search where note with inherited attribute is not matched when the owning note is not matched, #2457
2021-12-20 21:35:12 +01:00