windows-git-bash-testing

Detect Git Bash/MINGW environments and convert paths for Windows test execution.

51|10|Updated Oct 22, 2025
One-click install
npx skills add https://github.com/JosiahSiegel/claude-plugin-marketplace --skill windows-git-bash-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: windows-git-bash-testing
Source: https://github.com/JosiahSiegel/claude-plugin-marketplace/tree/main/plugins/test-master/skills/windows-git-bash-testing
Command: npx skills add https://github.com/JosiahSiegel/claude-plugin-marketplace --skill windows-git-bash-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides essential guidance and solutions for running Vitest, Playwright, and MSW tests reliably on Windows, specifically addressing the complexities of Git Bash/MINGW environments.

Core Features & Use Cases

  • Shell Detection: Implement robust methods to detect Git Bash/MINGW environments within test setups.
  • Path Conversion Solutions: Offers strategies to overcome common path conversion issues between Unix-style and Windows paths.
  • Cross-Platform Best Practices: Details how to configure and execute tests using npm scripts, relative paths, and safe file handling.
  • Use Case: Ensure your automated test suite passes consistently whether run on a developer's Windows machine using Git Bash or on a Linux-based CI/CD server.

Quick Start

Use the windows-git-bash-testing skill to understand how to detect the Git Bash environment in your test setup.

Frequently Asked Questions about windows-git-bash-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix path conversion issues when running Vitest in Git Bash?

To fix path conversion issues in Git Bash, you must address mismatches between Unix-style and Windows paths. Resolve these problems by using relative paths and implementing safe file handling practices in your test configuration.

Why does Playwright fail to execute tests on Windows using Git Bash?

Playwright test execution fails on Windows due to Git Bash/MINGW environment complexities. Achieve reliable test runs by implementing robust shell detection methods and cross-platform best practices to configure your npm scripts correctly.

Can I use MSW for cross-platform testing across Git Bash and Linux CI/CD servers?

Yes, you can use MSW for cross-platform testing across Git Bash and Linux CI/CD servers. Configuring tests with npm scripts and safe file handling ensures your automated test suite passes consistently across different environments.

What is the best way to detect a Git Bash shell during a Node.js test setup?

The best way to detect a Git Bash shell is to implement robust shell detection methods within your Node.js test setup. This allows your scripts to identify MINGW environments and adapt path handling for Vitest and Playwright.

Does cross-platform testing require specific npm scripts for Windows and Git Bash compatibility?

Cross-platform testing requires specific npm scripts to ensure Windows and Git Bash compatibility. Using relative paths and safe file handling in your npm scripts prevents execution failures caused by MINGW path translation issues.