-
-
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.
fix(reporter): use default error formatter for JUnit (#5629)
- Loading branch information
Showing
9 changed files
with
188 additions
and
390 deletions.
There are no files selected for viewing
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
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,49 @@ | ||
import { afterAll, it, expect } from "vitest"; | ||
|
||
afterAll(() => { | ||
throwSuite() | ||
}) | ||
|
||
it('stack', () => { | ||
throwDeep() | ||
}) | ||
|
||
it('diff', () => { | ||
expect({ hello: 'x' }).toEqual({ hello: 'y' }) | ||
}) | ||
|
||
it('unhandled', () => { | ||
(async () => throwSimple())() | ||
}) | ||
|
||
it('no name object', () => { | ||
throw { noName: 'hi' }; | ||
}); | ||
|
||
it('string', () => { | ||
throw "hi"; | ||
}); | ||
|
||
it('number', () => { | ||
throw 1234; | ||
}); | ||
|
||
it('number name object', () => { | ||
throw { name: 1234 }; | ||
}); | ||
|
||
it('xml', () => { | ||
throw new Error('error message that has XML in it <div><input/></div>'); | ||
}) | ||
|
||
function throwDeep() { | ||
throwSimple() | ||
} | ||
|
||
function throwSimple() { | ||
throw new Error('throwSimple') | ||
} | ||
|
||
function throwSuite() { | ||
throw new Error('throwSuite') | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.