windows-git-bash-testing
Installation
SKILL.md
Windows and Git Bash Testing Compatibility Guide
Overview
This guide provides essential knowledge for running Vitest, Playwright, and MSW tests on Windows, particularly in Git Bash/MINGW environments. It addresses common path conversion issues, shell detection, and cross-platform test execution patterns.
Shell Detection in Test Environments
Detecting Git Bash/MINGW
When running tests in Git Bash or MINGW environments, use these detection methods:
Method 1: Environment Variable (Most Reliable)
// Detect Git Bash/MINGW in Node.js test setup
function isGitBash() {
return !!(process.env.MSYSTEM); // MINGW64, MINGW32, MSYS
}