feat : narrowspark/automatic-composer-prefetcher as a alternative to prestissimo

This commit is contained in:
Daniel Bannert
2020-01-04 07:22:15 +01:00
committed by prisis
parent 7b8bf7af6a
commit 5b00f068f3
5 changed files with 58 additions and 12 deletions

View File

@ -106,5 +106,13 @@ describe('Tools tests', () => {
'Add-Content -Path $PsHome\\profile.ps1 -Value "New-Alias phinx $composer_dir\\vendor\\bin\\phinx.bat"'
);
expect(script).toContain('Tool does_not_exit is not supported');
script = await tools.addTools('phpstan, composer-prefetcher', 'darwin');
expect(script).toContain(
'add_tool https://github.com/phpstan/phpstan/releases/latest/download/phpstan.phar phpstan'
);
expect(script).toContain(
'composer global require narrowspark/automatic-composer-prefetcher'
);
});
});