mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-19 01:18:54 +01:00
api/test: add env for configuring ignored tests
This commit is contained in:
parent
8f57881a68
commit
a06bad161a
1 changed files with 5 additions and 1 deletions
|
@ -14,7 +14,11 @@ const getTests = (service) => loadJSON(getTestPath(service));
|
|||
|
||||
// services that are known to frequently fail due to external
|
||||
// factors (e.g. rate limiting)
|
||||
const finnicky = new Set(['bilibili', 'instagram', 'facebook', 'youtube', 'vk', 'twitter', 'reddit']);
|
||||
const finnicky = new Set(
|
||||
typeof process.env.TEST_IGNORE_SERVICES === 'string'
|
||||
? process.env.TEST_IGNORE_SERVICES.split(',')
|
||||
: ['bilibili', 'instagram', 'facebook', 'youtube', 'vk', 'twitter', 'reddit']
|
||||
);
|
||||
|
||||
const runTestsFor = async (service) => {
|
||||
const tests = getTests(service);
|
||||
|
|
Loading…
Reference in a new issue