Merge pull request #19977 from backstage/freben/repo-tools

attempt at fixing some windows test failures
This commit is contained in:
Fredrik Adelöw
2023-09-16 12:03:22 +02:00
committed by GitHub
3 changed files with 27 additions and 23 deletions
@@ -35,6 +35,7 @@ import { getVoidLogger } from '@backstage/backend-common';
import { PassThrough } from 'stream';
import { initRepoAndPush } from '../helpers';
import yaml from 'yaml';
import { sep } from 'path';
import { examples } from './bitbucket.examples';
describe('publish:bitbucket', () => {
@@ -189,7 +190,7 @@ describe('publish:bitbucket', () => {
input: yaml.parse(examples[4].example).steps[0].input,
});
expect(initRepoAndPush).toHaveBeenCalledWith({
dir: `${mockContext.workspacePath}/repoRoot`,
dir: `${mockContext.workspacePath}${sep}repoRoot`,
remoteUrl: 'https://bitbucket.org/workspace/cloneurl',
auth: { username: 'x-token-auth', password: 'tokenlols' },
logger: mockContext.logger,