UNPKG

react-native

Version:

A framework for building native apps using React

24 lines (18 loc) 559 B
'use strict'; jest.autoMockOff(); const xcode = require('xcode'); const getProducts = require('../../ios/getProducts'); const path = require('path'); const project = xcode.project( path.join(__dirname, '../../__fixtures__/project.pbxproj') ); describe('ios::getProducts', () => { beforeEach(() => { project.parseSync(); }); it('should return an array of static libraries project exports', () => { const products = getProducts(project); expect(products.length).toBe(1); expect(products).toContain('libRCTActionSheet.a'); }); });