ci: Fix test exclusion list in combination with other exclusions (#9277)
This commit is contained in:
@@ -470,27 +470,15 @@ try {
|
||||
/**
|
||||
* Assign ID to test and run it. Disable test if its UUID is found in testExclusionList.
|
||||
* @param {String} id The UUID of the test.
|
||||
* @param {any} func The test function.
|
||||
*/
|
||||
global.it_id = (id, func) => {
|
||||
if (testExclusionList.includes(id)) {
|
||||
return xit;
|
||||
} else {
|
||||
return func || it;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Assign ID to test and run only this test. Disable test if its UUID is found in testExclusionList.
|
||||
* @param {String} id The UUID of the test.
|
||||
* @param {any} func The test function.
|
||||
*/
|
||||
global.fit_id = (id, func) => {
|
||||
if (testExclusionList.includes(id)) {
|
||||
return xit;
|
||||
} else {
|
||||
return func || fit;
|
||||
}
|
||||
global.it_id = id => {
|
||||
return testFunc => {
|
||||
if (testExclusionList.includes(id)) {
|
||||
return xit;
|
||||
} else {
|
||||
return testFunc;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
global.it_only_db = db => {
|
||||
|
||||
Reference in New Issue
Block a user