Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed Jun 3, 2024
1 parent 5e21445 commit 6bbb949
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/tools/runner/hooks/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@ const testSkipBeforeEachHook = async function () {

/**
* TODO: NODE-3891 - fix tests that are broken with auth enabled and remove this hook
* @param {{ skippedTests: string[] }} skippedTests - define list of tests to skip
* @param skippedTests - define list of tests to skip
* @returns
*/
const skipBrokenAuthTestBeforeEachHook = function ({ skippedTests } = { skippedTests: [] }) {
const skipBrokenAuthTestBeforeEachHook = function (
{ skippedTests }: { skippedTests: string[] } = { skippedTests: [] }
) {
return function () {
if (process.env.AUTH === 'auth' && skippedTests.includes(this.currentTest.title)) {
this.currentTest.skipReason = 'TODO: NODE-3891 - fix tests broken when AUTH enabled';
Expand Down

0 comments on commit 6bbb949

Please sign in to comment.