Skip to content

Commit 3817e65

Browse files
committed
test(windows): ignore iOS plugin tests on windows
1 parent 6e075ce commit 3817e65

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-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 = {

0 commit comments

Comments
 (0)