We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dfbe3b commit fcac0f1Copy full SHA for fcac0f1
1 file changed
extractors/cds/tools/test/src/cds/compiler/command.test.ts
@@ -62,7 +62,8 @@ describe('cds compiler command', () => {
62
if (fullCommand === '-c cds --version') {
63
throw new Error('Command not found');
64
}
65
- if (fullCommand === '-c npx -y --package @sap/cds-dk cds --version') {
+ // The shell-quote library escapes the command, so it becomes quoted
66
+ if (fullCommand === "-c 'npx -y --package @sap/cds-dk cds' --version") {
67
return Buffer.from('6.1.3');
68
69
throw new Error('Unexpected command');
@@ -87,7 +88,7 @@ describe('cds compiler command', () => {
87
88
});
89
expect(childProcess.execFileSync).toHaveBeenCalledWith(
90
'sh',
- ['-c', 'npx -y --package @sap/cds-dk cds --version'],
91
+ ['-c', "'npx -y --package @sap/cds-dk cds' --version"],
92
{
93
encoding: 'utf8',
94
stdio: 'pipe',
0 commit comments