Skip to content

Commit

Permalink
Run prettier, update remote tests for increased coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
steveukx committed Feb 3, 2024
1 parent b7e908a commit fac23b6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/test-typescript-consumer/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"baseUrl": ".",
"paths": {},
"esModuleInterop": false,
"allowSyntheticDefaultImports": false
"allowSyntheticDefaultImports": false,
},
"files": ["test/ts-default-from-root.spec.ts"]
"files": ["test/ts-default-from-root.spec.ts"],
}
4 changes: 2 additions & 2 deletions packages/test-typescript-esm-consumer/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"moduleResolution": "node16",
"noEmit": true,
"allowSyntheticDefaultImports": true,
"baseUrl": "."
"baseUrl": ".",
// "emitDecoratorMetadata": true,
// "experimentalDecorators": true,
// "forceConsistentCasingInFileNames": true,
Expand All @@ -18,5 +18,5 @@
// "sourceMap": true,
// "strictBindCallApply": true,
// "strictNullChecks": false,
}
},
}
6 changes: 3 additions & 3 deletions simple-git/src/lib/tasks/remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { straightThroughStringTask } from './task';
export function addRemoteTask(
remoteName: string,
remoteRepo: string,
customArgs: string[] = []
customArgs: string[]
): StringTask<string> {
return straightThroughStringTask(['remote', 'add', ...customArgs, remoteName, remoteRepo]);
}
Expand All @@ -23,7 +23,7 @@ export function getRemotesTask(verbose: boolean): StringTask<any> {
};
}

export function listRemotesTask(customArgs: string[] = []): StringTask<string> {
export function listRemotesTask(customArgs: string[]): StringTask<string> {
const commands = [...customArgs];
if (commands[0] !== 'ls-remote') {
commands.unshift('ls-remote');
Expand All @@ -32,7 +32,7 @@ export function listRemotesTask(customArgs: string[] = []): StringTask<string> {
return straightThroughStringTask(commands);
}

export function remoteTask(customArgs: string[] = []): StringTask<string> {
export function remoteTask(customArgs: string[]): StringTask<string> {
const commands = [...customArgs];
if (commands[0] !== 'remote') {
commands.unshift('remote');
Expand Down
6 changes: 3 additions & 3 deletions simple-git/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
"declarationMap": false,
"sourceMap": true,
"paths": {},
"noEmit": true
"noEmit": true,
},
"exclude": ["node_modules"],
"include": [
"src/lib/**/*.ts",
"test/__fixtures__/**/*.ts",
"test/integration/**/*.ts",
"test/unit/**/*.ts",
"typings/index.d.ts"
]
"typings/index.d.ts",
],
}

0 comments on commit fac23b6

Please sign in to comment.