Skip to content

Commit ed56aa5

Browse files
committed
[tests] Types
1 parent d03d27d commit ed56aa5

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

test/tsconfig.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@
1212
"allowSyntheticDefaultImports": true,
1313
"noEmit": true,
1414
"allowImportingTsExtensions": true,
15-
"types": ["asciichart", "node", "http-server", "bun-types"],
15+
"types": [
16+
"asciichart",
17+
"node",
18+
"http-server",
19+
"@cloudflare/workers-types",
20+
"bun-types"
21+
],
1622
"composite": true,
1723
"skipLibCheck": true,
1824
"allowJs": true

test/unit/persisters/common/mocks.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,8 +860,10 @@ export const mockDurableObjectStorage: Persistable<MockDurableObjectStorage> = {
860860
content: Content | MergeableContent,
861861
): Promise<void> => {
862862
// Convert MergeableContent to the key-value format the persister uses
863-
const [[tablesObj, tablesHlc, tablesHash], [valuesObj, valuesHlc, valuesHash]] =
864-
content as MergeableContent;
863+
const [
864+
[tablesObj, tablesHlc, tablesHash],
865+
[valuesObj, valuesHlc, valuesHash],
866+
] = content as MergeableContent;
865867
const entries: Record<string, any> = {};
866868

867869
// Store tables root

0 commit comments

Comments
 (0)