pipeline improvements

pull/496/head
Frostebite 2023-02-12 13:24:55 +00:00
parent 70ad32f655
commit 6def7d36ae
1 changed files with 6 additions and 0 deletions

View File

@ -54,6 +54,12 @@ commands: echo "test"`;
expect(beforeHooks).toHaveLength(1); expect(beforeHooks).toHaveLength(1);
expect(afterHooks).toHaveLength(1); expect(afterHooks).toHaveLength(1);
}); });
it('Should be 1 before and 1 after step', async () => {
const beforeSteps = CloudRunnerCustomSteps.GetCustomStepsFromFiles(`before`);
const afterSteps = CloudRunnerCustomSteps.GetCustomStepsFromFiles(`after`);
expect(beforeSteps).toHaveLength(1);
expect(afterSteps).toHaveLength(1);
});
it('Run build once - check for pre and post custom hooks run contents', async () => { it('Run build once - check for pre and post custom hooks run contents', async () => {
const overrides = { const overrides = {
versioning: 'None', versioning: 'None',