Skip to content

Commit

Permalink
Merge pull request #4 from mmisty/fix-throw
Browse files Browse the repository at this point in the history
[patch] fix uncaught exception
  • Loading branch information
mmisty authored Jul 5, 2024
2 parents dad74c4 + 5147269 commit 9d97c2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/setup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const registerTags = () => {
const test = origin(...args);

// for tests that doesn't have parent suite
if (test.parent && test.parent.title === '' && !test.parent.parent) {
if (test && test.parent && test.parent.title === '' && !test.parent.parent) {
testProcess(test);
}

Expand All @@ -124,7 +124,7 @@ export const registerTags = () => {
const suite = original(...args);

// do only for root suite
if (suite.parent?.title === '') {
if (suite && suite.parent?.title === '') {
suite.eachTest((st: any) => {

Check warning on line 128 in src/setup/index.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 128 in src/setup/index.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type
testProcess(st);
});
Expand Down

0 comments on commit 9d97c2f

Please sign in to comment.