test: enable GraphQL file upload tests (#7980)

This commit is contained in:
Manuel
2022-05-06 22:31:30 +02:00
committed by GitHub
parent 2eb56039e2
commit d691591630
3 changed files with 41 additions and 3 deletions

View File

@@ -461,6 +461,15 @@ global.it_only_postgres_version = version => {
}
};
global.it_only_node_version = version => {
const envVersion = process.env.NODE_VERSION;
if (!envVersion || semver.satisfies(envVersion, version)) {
return it;
} else {
return xit;
}
};
global.fit_only_mongodb_version = version => {
const envVersion = process.env.MONGODB_VERSION;
if (!envVersion || semver.satisfies(envVersion, version)) {
@@ -470,6 +479,15 @@ global.fit_only_mongodb_version = version => {
}
};
global.fit_only_node_version = version => {
const envVersion = process.env.NODE_VERSION;
if (!envVersion || semver.satisfies(envVersion, version)) {
return fit;
} else {
return xit;
}
};
global.it_exclude_mongodb_version = version => {
const envVersion = process.env.MONGODB_VERSION;
if (!envVersion || !semver.satisfies(envVersion, version)) {
@@ -488,6 +506,15 @@ global.it_exclude_postgres_version = version => {
}
};
global.it_exclude_node_version = version => {
const envVersion = process.env.NODE_VERSION;
if (!envVersion || !semver.satisfies(envVersion, version)) {
return it;
} else {
return xit;
}
};
global.fit_exclude_mongodb_version = version => {
const envVersion = process.env.MONGODB_VERSION;
if (!envVersion || !semver.satisfies(envVersion, version)) {
@@ -497,6 +524,15 @@ global.fit_exclude_mongodb_version = version => {
}
};
global.fit_exclude_node_version = version => {
const envVersion = process.env.NODE_VERSION;
if (!envVersion || !semver.satisfies(envVersion, version)) {
return fit;
} else {
return xit;
}
};
global.fit_exclude_dbs = excluded => {
if (excluded.indexOf(process.env.PARSE_SERVER_TEST_DB) >= 0) {
return xit;