Use php-darwin caches on macOS

This commit is contained in:
Shivam Mathur
2026-08-28 21:43:16 +05:30
parent 159772ba0f
commit d609db96ad
16 changed files with 641 additions and 2 deletions
+21
View File
@@ -254,6 +254,27 @@ describe('Utils tests', () => {
);
});
it('builds the run-script path from only the script filename', () => {
const scriptPath = path.join(
'/tmp',
'feature',
'php-darwin-cache',
'src',
'scripts',
'darwin.sh'
);
expect(utils.scriptRunPath(scriptPath)).toBe(
path.join(
'/tmp',
'feature',
'php-darwin-cache',
'src',
'scripts',
'run.sh'
)
);
});
it('checking scriptTool', async () => {
expect(await utils.scriptTool('linux')).toBe('bash ');
expect(await utils.scriptTool('darwin')).toBe('bash ');