Skip to content

Commit

Permalink
updated discoverTest condition
Browse files Browse the repository at this point in the history
  • Loading branch information
connectdotz committed Dec 4, 2021
1 parent b335be6 commit 4acf7c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test-provider/test-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ export class JestTestProvider {
);
try {
const data = this.context.getData(theItem);
if (data) {
if (data && data.discoverTest) {
this.context.appendOutput(`resolving children for ${theItem.id}`, run, true);
data.discoverTest?.(run);
data.discoverTest(run);
} else {
this.context.appendOutput(`no data found for item ${theItem.id}`, run, true, 'red');
}
Expand Down

0 comments on commit 4acf7c9

Please sign in to comment.