Skip to content

Commit

Permalink
Revert "ci: add debug statements"
Browse files Browse the repository at this point in the history
This reverts commit 12c4218.
  • Loading branch information
elias-pap committed Jun 27, 2023
1 parent 483be94 commit 0e24b1f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion test/e2e/__utils__/getLintStagedExecutor.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ let lintStagedBin = resolve(__dirname, '../../../bin/lint-staged.js')
export const getLintStagedExecutor =
(cwd) =>
async (params = '') =>
await execaCommand(`${lintStagedBin} --debug --cwd=${cwd} ${params}`, { cwd })
await execaCommand(`${lintStagedBin} --cwd=${cwd} ${params}`)
7 changes: 0 additions & 7 deletions test/e2e/no-stash.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,25 @@ describe('lint-staged', () => {
await execGit(['commit', '-m', 'test'])

let res = await lintStaged()
console.info(res.stdout)
expect(res.stdout).toMatch('No staged files found.')

res = await lintStaged('--stash')
console.info(res.stdout)
expect(res.stdout).toMatch('No staged files found.')

res = await lintStaged('--no-stash')
console.info(res.stdout)
console.info(res.stderr)
expect(res.stdout).toMatch('No staged files found.')
expect(res.stderr).toMatch('Skipping backup because `--no-stash` was used.')

res = await lintStaged('--diff=master...my-branch')
console.info(res.stderr)
expect(res.stderr).toMatch('Skipping backup because `--diff` was used.')

try {
await lintStaged('--diff=master...my-branch --stash')
} catch (err) {
console.info(err.stderr)
expect(err.stderr).toMatch('lint-staged failed due to a git error.')
}

res = await lintStaged('--diff=master...my-branch --no-stash')
console.info(res.stderr)
expect(res.stderr).toMatch('Skipping backup because `--diff` was used.')
})
)
Expand Down

0 comments on commit 0e24b1f

Please sign in to comment.