use anyhow::Result; use assert_fs::prelude::*; use crate::common::{cmd_snapshot, TestContext}; /// GitHub Action only has docker for linux hosted runners. #[test] fn fail() -> Result<()> { let context = TestContext::new(); context.init_project(); let cwd = context.workdir(); cwd.child("changelog").create_dir_all()?; cwd.child("changelog/changelog.md").touch()?; context.write_pre_commit_config(indoc::indoc! {r" repos: - repo: local hooks: - id: changelogs-rst name: changelogs must be rst entry: changelog filenames must end in .rst language: fail files: 'changelog/.*(?