Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/cli-kit/src/private/node/conf-store.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ describe('runWithRateLimit', () => {
test('throttles the task when the cache is populated recently', async () => {
await inTemporaryDirectory(async (cwd) => {
// Given
vi.useFakeTimers()
const config = new LocalStorage<any>({cwd})
for (let i = 0; i < limit; i++) {
// eslint-disable-next-line no-await-in-loop
Expand Down Expand Up @@ -511,6 +512,7 @@ describe('runWithRateLimit', () => {
test("runs the task as usual when the cache is populated recently but the rate limit isn't used up", async () => {
await inTemporaryDirectory(async (cwd) => {
// Given
vi.useFakeTimers()
const config = new LocalStorage<any>({cwd})
// Run the task once, but the rate limit is 2
await runWithRateLimit(
Expand Down
Loading