Skip to content

Commit

Permalink
test(persistQuery): add tests for withPersistQueryClient
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerGronich committed Nov 23, 2024
1 parent b4d880a commit 566f72a
Show file tree
Hide file tree
Showing 5 changed files with 664 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
"@angular/platform-browser-dynamic": "^17.3.12",
"@microsoft/api-extractor": "^7.47.4",
"@tanstack/angular-query-experimental": "workspace:*",
"@testing-library/angular": "^17.3.2",
"@testing-library/dom": "^10.4.0",
"eslint-plugin-jsdoc": "^50.2.2",
"tsup": "8.0.2",
"typescript": "5.3.3"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
let queryKeyCount = 0
export function queryKey(): Array<string> {
queryKeyCount++
return [`query_${queryKeyCount}`]
}

export function sleep(timeout: number): Promise<void> {
return new Promise((resolve, _reject) => {
setTimeout(resolve, timeout)
})
}
Loading

0 comments on commit 566f72a

Please sign in to comment.