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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user