Skip to content

Commit

Permalink
fix: integration suite fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Sep 13, 2023
1 parent 579177f commit 9579e1b
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,20 +137,13 @@ availableTargets()
.forEach(target => {
const { key: targetId, title, clients } = target;

const targetClients = clients.filter(testFilter('key', clientFilter(target.key)));
if (!targetClients.length) {
return;
}

describe.skipIf(process.env.NODE_ENV === 'test')(`${title} integration tests`, () => {
targetClients.forEach(({ key: clientId }) => {
clients.filter(testFilter('key', clientFilter(target.key))).forEach(({ key: clientId }) => {
// If we're in an HTTPBin-powered Docker environment we only want to run tests for the
// client that our Docker has been configured for.
if (process.env.HTTPBIN && process.env.INTEGRATION_CLIENT !== targetId) {
return;
}
const shouldSkip = process.env.HTTPBIN && process.env.INTEGRATION_CLIENT !== targetId;

describe(clientId, () => {
describe.skipIf(shouldSkip)(clientId, () => {
fixtures.filter(testFilter(0, fixtureIgnoreFilter, true)).forEach(([fixture, request]) => {
if (fixture === 'custom-method' && clientId === 'restsharp') {
// restsharp doesn't even let you express calling an invalid
Expand Down

0 comments on commit 9579e1b

Please sign in to comment.