feat: implement breaking change input
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use assert_fs::TempDir;
|
||||
#[cfg(feature = "test-utils")]
|
||||
use jj_cz::{CommitType, Description, MockPrompts, Scope};
|
||||
use jj_cz::{BreakingChange, CommitType, Description, MockPrompts, Scope};
|
||||
use jj_cz::{CommitWorkflow, Error, JjLib};
|
||||
#[cfg(feature = "test-utils")]
|
||||
use jj_lib::{config::StackedConfig, settings::UserSettings, workspace::Workspace};
|
||||
@@ -27,6 +27,7 @@ async fn test_happy_path_integration() {
|
||||
.with_commit_type(CommitType::Feat)
|
||||
.with_scope(Scope::empty())
|
||||
.with_description(Description::parse("add new feature").unwrap())
|
||||
.with_breaking_change(BreakingChange::No)
|
||||
.with_confirm(true);
|
||||
|
||||
// Create a mock executor that tracks calls
|
||||
@@ -85,6 +86,7 @@ async fn test_cancellation() {
|
||||
.with_commit_type(CommitType::Feat)
|
||||
.with_scope(Scope::empty())
|
||||
.with_description(Description::parse("test").unwrap())
|
||||
.with_breaking_change(BreakingChange::No)
|
||||
.with_confirm(true);
|
||||
let workflow = CommitWorkflow::with_prompts(executor, mock_prompts);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user