-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
26 additions
and
171 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
17 changes: 0 additions & 17 deletions
17
test/snapshots/test-update/__snapshots__/retry.test.ts.snap
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...s/test/fixtures/test-update/retry.test.ts → .../snapshots/test-update/retry-file.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { expect, test } from 'vitest' | ||
|
||
test('inline repeats', { repeats: 1 }, () => { | ||
expect('foo').toMatchInlineSnapshot(`"foo"`) | ||
}) | ||
|
||
test('inline retry', { retry: 1 }, (ctx) => { | ||
expect('foo').toMatchInlineSnapshot(`"foo"`) | ||
if (ctx.task.result?.retryCount === 0) { | ||
throw new Error('boom') | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
test/snapshots/test-update/retry.test.ts → ...t/fixtures/test-update/retry-file.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
test/snapshots/test/fixtures/test-update/retry-inline.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { expect, test } from 'vitest' | ||
|
||
test('inline repeats', { repeats: 1 }, () => { | ||
expect('foo').toMatchInlineSnapshot() | ||
}) | ||
|
||
test('inline retry', { retry: 1 }, (ctx) => { | ||
expect('foo').toMatchInlineSnapshot() | ||
if (ctx.task.result?.retryCount === 0) { | ||
throw new Error('boom') | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters