Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(to be reverted): add logging for flaky test continuous #158

Merged
merged 5 commits into from Nov 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions src/bin/handle-git-dir-change.ts
Expand Up @@ -41,6 +41,7 @@ class InstallationError extends Error {
*/
export function resolvePath(dir: string) {
const absoluteDir = path.resolve(process.cwd(), dir);
console.log(`absolute directory in main ${absoluteDir}`);
return absoluteDir;
}

Expand Down
3 changes: 3 additions & 0 deletions test/git-dir-handler.ts
Expand Up @@ -122,6 +122,9 @@ describe('Path resolving', () => {
it("Resolves to absolute path when '..' is a prefix", () => {
const relativeGitDir = '../code-suggester/test/fixtures';
const path = resolvePath(relativeGitDir);
console.log(`path in test ${relativeGitDir}`);
console.log(`absoluteGitDirLinux in test ${absoluteGitDirLinux}`);
console.log(`absoluteGitDirDos in test ${absoluteGitDirDos}`);
expect(path === absoluteGitDirLinux || path === absoluteGitDirDos).true;
});

Expand Down