@@ -3,6 +3,8 @@ import {gitInit} from '../../prompts/git-init.js'
33import { describe , it , expect , vi } from 'vitest'
44import { error , file , git } from '@shopify/cli-kit'
55
6+ const isWin = process . platform === 'win32'
7+
68const defaultConfig = {
79 deploymentToken : 'abcdefg' ,
810 oxygenAddress : 'https://integration.test' ,
@@ -12,7 +14,7 @@ const defaultConfig = {
1214
1315describe ( 'validateProject() & initializeGit()' , ( ) => {
1416 describe ( 'User refuses to initialize new repository' , ( ) => {
15- it ( 'silent abort since outside git directory' , async ( ) => {
17+ it . skipIf ( isWin ) ( 'silent abort since outside git directory' , async ( ) => {
1618 await file . inTemporaryDirectory ( async ( tmpDir ) => {
1719 vi . mock ( '../../prompts/git-init.js' )
1820 vi . mocked ( gitInit ) . mockResolvedValue ( false )
@@ -24,7 +26,7 @@ describe('validateProject() & initializeGit()', () => {
2426 } )
2527 } )
2628 describe ( 'User accepts to initialize new repository' , ( ) => {
27- it (
29+ it . skipIf ( isWin ) (
2830 'initializes new git repository' ,
2931 async ( ) => {
3032 await file . inTemporaryDirectory ( async ( tmpDir ) => {
@@ -42,7 +44,7 @@ describe('validateProject() & initializeGit()', () => {
4244} )
4345
4446describe ( 'getDeployConfig()' , ( ) => {
45- it (
47+ it . skipIf ( isWin ) (
4648 'extract basic information from git' ,
4749 async ( ) => {
4850 await file . inTemporaryDirectory ( async ( tmpDir ) => {
0 commit comments