Skip to content

Commit

Permalink
test: improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnowack committed Feb 27, 2024
1 parent 076f636 commit 16ce409
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
coverage:
status:
project:
default:
target: 100%
3 changes: 0 additions & 3 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ export function addDependencyIfNotExists(config: Config, dependency: Dependency)
const newConfig = { ...config, dependencies: [...config.dependencies || []] }
if (!newConfig.dependencies.some(dep => dep.localPath === dependency.localPath)) {
newConfig.dependencies.push(dependency)
} else {
/* istanbul ignore next -- @preserve */
console.log(`Dependency with local path ${dependency.localPath} already exists. Dependency not added.`) // eslint-disable-line no-console
}
return newConfig
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/git/isAncestor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import executeCommand from '../executeCommand.js'
export default async function isAncestor(
ancestor: string,
descendant: string,
repoPath: string = process.cwd(),
repoPath: string,
) {
return executeCommand(`git merge-base --is-ancestor ${ancestor} ${descendant}`, {
cwd: repoPath,
Expand Down

0 comments on commit 16ce409

Please sign in to comment.