Skip to content

Commit

Permalink
Use threshold workaround to fail the test on failed checks
Browse files Browse the repository at this point in the history
  • Loading branch information
oleiade committed Sep 6, 2024
1 parent c28dfdc commit ac010d5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,15 @@ const testData = {
},
}

export default async function testSuite() {
export const options = {
thresholds: {
// As we're essentially unit testing here, we want to make sure that
// the rate of successful checks is 100%
checks: ['rate>=1'],
}
}

export default async function() {
signatureV4TestSuite()
await s3TestSuite(testData)
await secretsManagerTestSuite(testData)
Expand All @@ -96,4 +104,4 @@ export default async function testSuite() {
await kinesisTestSuite(testData)
await eventBridgeTestSuite(testData)
await lambdaTestSuite(testData)
}
}

0 comments on commit ac010d5

Please sign in to comment.