Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rekmarks committed Dec 8, 2023
1 parent 6d3c67d commit 6860375
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions src/monorepo-workflow-operations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,13 +398,19 @@ describe('monorepo-workflow-operations', () => {
it('follows the workflow correctly when executed twice', async () => {
await withSandbox(async (sandbox) => {
const releaseVersion = '1.1.0';
const { project, stdout, stderr, createReleaseBranchSpy, commitAllChangesSpy, projectDirectoryPath } =
await setupFollowMonorepoWorkflow({
sandbox,
releaseVersion,
doesReleaseSpecFileExist: false,
isEditorAvailable: true,
});
const {
project,
stdout,
stderr,
createReleaseBranchSpy,
commitAllChangesSpy,
projectDirectoryPath,
} = await setupFollowMonorepoWorkflow({
sandbox,
releaseVersion,
doesReleaseSpecFileExist: false,
isEditorAvailable: true,
});

createReleaseBranchSpy.mockResolvedValueOnce({
version: releaseVersion,
Expand All @@ -428,11 +434,13 @@ describe('monorepo-workflow-operations', () => {
});

expect(commitAllChangesSpy).toHaveBeenCalledTimes(2);
expect(commitAllChangesSpy).toHaveBeenNthCalledWith(1,
expect(commitAllChangesSpy).toHaveBeenNthCalledWith(
1,
projectDirectoryPath,
`Initialize Release ${releaseVersion}`,
);
expect(commitAllChangesSpy).toHaveBeenNthCalledWith(2,
expect(commitAllChangesSpy).toHaveBeenNthCalledWith(
2,
projectDirectoryPath,
`Update Release ${releaseVersion}`,
);
Expand Down Expand Up @@ -461,7 +469,8 @@ describe('monorepo-workflow-operations', () => {
});

expect(commitAllChangesSpy).toHaveBeenCalledTimes(3);
expect(commitAllChangesSpy).toHaveBeenNthCalledWith(3,
expect(commitAllChangesSpy).toHaveBeenNthCalledWith(
3,
projectDirectoryPath,
`Update Release ${releaseVersion}`,
);
Expand Down

0 comments on commit 6860375

Please sign in to comment.