Skip to content

Commit

Permalink
docs(expect): fix soft example error (vitest-dev#4712)
Browse files Browse the repository at this point in the history
  • Loading branch information
wzc520pyfm authored and LorenzoBloedow committed Dec 19, 2023
1 parent 2db1197 commit b58570f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/expect.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ import { expect, test } from 'vitest'

test('expect.soft test', () => {
expect.soft(1 + 1).toBe(3) // mark the test as fail and continue
expect(1 + 2).toBe(3) // failed and terminate the test, all previous errors will be output
expect.soft(1 + 2).toBe(4) // do not run
expect(1 + 2).toBe(4) // failed and terminate the test, all previous errors will be output
expect.soft(1 + 3).toBe(5) // do not run
})
```

Expand Down

0 comments on commit b58570f

Please sign in to comment.