chore: render readable title separator in errors (#19754)
This commit is contained in:
parent
bb275cccb6
commit
6083926111
|
|
@ -99,8 +99,7 @@ export class BaseReporter implements ReporterInternal {
|
||||||
}
|
}
|
||||||
|
|
||||||
onError(error: TestError) {
|
onError(error: TestError) {
|
||||||
if (!(error as any).__isNotAFatalError)
|
this._fatalErrors.push(error);
|
||||||
this._fatalErrors.push(error);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async onEnd(result: FullResult) {
|
async onEnd(result: FullResult) {
|
||||||
|
|
|
||||||
|
|
@ -945,7 +945,7 @@ function createDuplicateTitlesErrors(config: FullConfigInternal, rootSuite: Suit
|
||||||
for (const fileSuite of rootSuite.suites) {
|
for (const fileSuite of rootSuite.suites) {
|
||||||
const testsByFullTitle = new Map<string, TestCase>();
|
const testsByFullTitle = new Map<string, TestCase>();
|
||||||
for (const test of fileSuite.allTests()) {
|
for (const test of fileSuite.allTests()) {
|
||||||
const fullTitle = test.titlePath().slice(2).join('\x1e');
|
const fullTitle = test.titlePath().slice(2).join(' › ');
|
||||||
const existingTest = testsByFullTitle.get(fullTitle);
|
const existingTest = testsByFullTitle.get(fullTitle);
|
||||||
if (existingTest) {
|
if (existingTest) {
|
||||||
const error: TestError = {
|
const error: TestError = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue