fix(app-builder): remove composer install from scope php action #509
push.yml
on: push
test
/
test
41s
rebase-prs
/
rebase-prs
Annotations
3 errors
src/commands/scopePhp/scopePhp.spec.ts > command: scopePhp > installs php scoper if it isn't installed yet:
apps/app-builder/src/commands/scopePhp/scopePhp.spec.ts#L80
AssertionError: expected 1st "spy" call to have been called with [ Array(3) ]
- Expected
+ Received
Array [
"composer",
- ArrayContaining [
- "install",
- "--no-dev",
+ Array [
+ "require",
+ "--working-dir=.scoped/php-scoper",
+ "humbug/php-scoper:^0.17.0",
+ "--no-interaction",
+ "--no-progress",
],
ObjectContaining {
"cwd": StringContaining "/home/runner/work/js-pdk/js-pdk/apps/app-builder/.test",
},
]
❯ src/commands/scopePhp/scopePhp.spec.ts:80:37
|
src/commands/scopePhp/scopePhp.spec.ts > command: scopePhp > skips install if php scoper is already installed:
apps/app-builder/src/commands/scopePhp/scopePhp.spec.ts#L112
AssertionError: expected 1st "spy" call to have been called with [ Array(3) ]
- Expected
+ Received
Array [
- "composer",
- ArrayContaining [
- "install",
- "--no-dev",
+ "php",
+ Array [
+ "-d memory_limit=-1",
+ ".tmp/php-scoper/vendor/bin/php-scoper",
+ "add-prefix",
+ "--config=scoper.inc.php",
+ "--output-dir=.tmp/scoped/source",
+ "--force",
+ "--no-ansi",
+ "--no-interaction",
],
ObjectContaining {
"cwd": StringContaining "/home/runner/work/js-pdk/js-pdk/apps/app-builder/.test",
},
]
❯ src/commands/scopePhp/scopePhp.spec.ts:112:37
|
test / test
Process completed with exit code 1.
|