Skip to content

Commit ae2808b

Browse files
authored
Merge pull request #640 from Shopify/skip-git-init-tests-on-windows
Skip super flaky tests on windows while we investigate why they're flaking
2 parents 8dc6cd5 + 95df9e6 commit ae2808b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/cli-hydrogen/src/cli/services/deploy/config.integration.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import {gitInit} from '../../prompts/git-init.js'
33
import {describe, it, expect, vi} from 'vitest'
44
import {error, file, git} from '@shopify/cli-kit'
55

6+
const isWin = process.platform === 'win32'
7+
68
const defaultConfig = {
79
deploymentToken: 'abcdefg',
810
oxygenAddress: 'https://integration.test',
@@ -12,7 +14,7 @@ const defaultConfig = {
1214

1315
describe('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

4446
describe('getDeployConfig()', () => {
45-
it(
47+
it.skipIf(isWin)(
4648
'extract basic information from git',
4749
async () => {
4850
await file.inTemporaryDirectory(async (tmpDir) => {

0 commit comments

Comments
 (0)