fix(techdocs-cli): remove quote from volume

Ref: https://github.com/backstage/techdocs-cli/pull/162
Co-authored-by: Emma Indal <emma.indahl@gmail.com>
Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2021-11-12 11:36:22 +01:00
parent c2f387880f
commit eec57229eb
2 changed files with 2 additions and 3 deletions
@@ -32,12 +32,11 @@ describe('runMkdocsServer', () => {
it('should run docker directly by default', async () => {
await runMkdocsServer({});
const quotedCwd = `"${process.cwd()}":/content`;
expect(run).toHaveBeenCalledWith(
'docker',
expect.arrayContaining([
'run',
quotedCwd,
`${process.cwd()}:/content`,
'8000:8000',
'serve',
'--dev-addr',
@@ -37,7 +37,7 @@ export const runMkdocsServer = async (options: {
'-w',
'/content',
'-v',
`"${process.cwd()}":/content`,
`${process.cwd()}:/content`,
'-p',
`${port}:${port}`,
dockerImage,