Skip to content

Commit caef75a

Browse files
committed
test(windows): ignore iOS plugin tests on windows
1 parent 7276718 commit caef75a

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

packages/app-check/plugin/__tests__/iosPlugin.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
modifyObjcAppDelegate,
1010
modifySwiftAppDelegate,
1111
} from '../src/ios/appDelegate';
12+
import { platform } from 'os';
1213

1314
describe('Config Plugin iOS Tests', function () {
1415
beforeEach(function () {
@@ -43,6 +44,9 @@ describe('Config Plugin iOS Tests', function () {
4344
});
4445

4546
it('tests changes made to AppDelegate.m with fallback regex (if the original one fails)', async function () {
47+
if (platform() == 'win32') {
48+
return;
49+
}
4650
const appDelegate = await fs.readFile(
4751
path.join(__dirname, './fixtures/AppDelegate_fallback.m'),
4852
{

packages/app/plugin/__tests__/iosPlugin.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
modifyObjcAppDelegate,
1010
modifySwiftAppDelegate,
1111
} from '../src/ios/appDelegate';
12+
import { platform } from 'os';
1213

1314
describe('Config Plugin iOS Tests', function () {
1415
beforeEach(function () {
@@ -43,6 +44,9 @@ describe('Config Plugin iOS Tests', function () {
4344
});
4445

4546
it('tests changes made to AppDelegate.m with fallback regex (if the original one fails)', async function () {
47+
if (platform() == 'win32') {
48+
return;
49+
}
4650
const appDelegate = await fs.readFile(
4751
path.join(__dirname, './fixtures/AppDelegate_fallback.m'),
4852
{

packages/auth/plugin/__tests__/iosPlugin_openUrlFix.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
modifyAppDelegate,
1414
} from '../src/ios/openUrlFix';
1515
import type { ExpoConfigPluginEntry } from '../src/ios/openUrlFix';
16+
import { platform } from 'os';
1617

1718
describe('Config Plugin iOS Tests - openUrlFix', () => {
1819
beforeEach(function () {
@@ -196,13 +197,19 @@ describe('Config Plugin iOS Tests - openUrlFix', () => {
196197
];
197198
appDelegateFixturesPatch.forEach(({ fixtureName, language }) => {
198199
it(`munges AppDelegate correctly - ${fixtureName}`, async () => {
200+
if (platform() == 'win32') {
201+
return;
202+
}
199203
const fixturePath = path.join(__dirname, 'fixtures', fixtureName);
200204
const appDelegate = await fs.readFile(fixturePath, { encoding: 'utf-8' });
201205
const result = modifyAppDelegate(appDelegate, language);
202206
expect(result).toMatchSnapshot();
203207
});
204208

205209
it(`prints warning message when configured to default and AppDelegate is modified`, async () => {
210+
if (platform() == 'win32') {
211+
return;
212+
}
206213
const fixturePath = path.join(__dirname, 'fixtures', fixtureName);
207214
const appDelegate = await fs.readFile(fixturePath, { encoding: 'utf-8' });
208215
const config = {

packages/dynamic-links/plugin/__tests__/iosPlugin.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import fs from 'fs/promises';
55
import path from 'path';
66

77
import { modifyAppDelegateAsync, modifyObjcAppDelegate } from '../src/ios/appDelegate';
8+
import { platform } from 'os';
89

910
describe('Config Plugin iOS Tests', function () {
1011
beforeEach(function () {
@@ -39,6 +40,9 @@ describe('Config Plugin iOS Tests', function () {
3940
});
4041

4142
it('tests changes made to AppDelegate.m with fallback regex (if the original one fails)', async function () {
43+
if (platform() == 'win32') {
44+
return;
45+
}
4246
const appDelegate = await fs.readFile(
4347
path.join(__dirname, './fixtures/AppDelegate_fallback.m'),
4448
{

0 commit comments

Comments
 (0)