huskies: merge 587_bug_pipeline_db_not_in_default_gitignore_novice_users_will_commit_it
This commit is contained in:
@@ -298,6 +298,8 @@ fn write_story_kit_gitignore(root: &Path) -> Result<(), String> {
|
|||||||
"token_usage.jsonl",
|
"token_usage.jsonl",
|
||||||
"wizard_state.json",
|
"wizard_state.json",
|
||||||
"store.json",
|
"store.json",
|
||||||
|
"pipeline.db",
|
||||||
|
"*.db",
|
||||||
];
|
];
|
||||||
|
|
||||||
let gitignore_path = root.join(".huskies").join(".gitignore");
|
let gitignore_path = root.join(".huskies").join(".gitignore");
|
||||||
@@ -744,6 +746,9 @@ mod tests {
|
|||||||
assert!(!root_content.contains(".huskies/coverage/"));
|
assert!(!root_content.contains(".huskies/coverage/"));
|
||||||
// store.json must be in .huskies/.gitignore instead
|
// store.json must be in .huskies/.gitignore instead
|
||||||
assert!(sk_content.contains("store.json"));
|
assert!(sk_content.contains("store.json"));
|
||||||
|
// Database files must be ignored so novice users don't accidentally commit them
|
||||||
|
assert!(sk_content.contains("pipeline.db"));
|
||||||
|
assert!(sk_content.contains("*.db"));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in New Issue
Block a user