Skip to content

Commit

Permalink
fix(schema2ts): Resolve flaky tests
Browse files Browse the repository at this point in the history
Resolves flaky test, with request cache still not being written to.

Fixes #748.
  • Loading branch information
langri-sha committed Jul 4, 2024
1 parent e4225d1 commit 9c6e79c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/schemastore-to-typescript/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ test('uses cache', async () => {
expect(await compile('foobar')).toBe(await compile('foobar'))

await new Promise((resolve) => {
setTimeout(resolve, 0)
setTimeout(resolve, 100)
})

const cached = JSON.parse(
Expand Down

0 comments on commit 9c6e79c

Please sign in to comment.