Skip to content

Commit

Permalink
docs(expect): fix soft example error (#4712)
Browse files Browse the repository at this point in the history
  • Loading branch information
wzc520pyfm authored Dec 9, 2023
1 parent 2b911d2 commit abe0197
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 abe0197

Please sign in to comment.