We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 099ec33 commit b8f39f6Copy full SHA for b8f39f6
.github/testing/src/config.ts
@@ -76,9 +76,10 @@ export class Config {
76
this.withDir(affected.path, args => {
77
if ('TestAll' in affected) {
78
this._testAll(args);
79
- }
80
- if ('TestSome' in affected) {
+ } else if ('TestSome' in affected) {
81
this._testSome(args, affected.TestSome);
+ } else {
82
+ throw `affected must contain either a "TestAll" or "TestSome" field, got ${affected}`;
83
}
84
});
85
0 commit comments