diff --git a/package-lock.json b/package-lock.json index ad0a8e7..9d5dde5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@fullstory/babel-plugin-annotate-react": "^2.3.2", - "@fullstory/babel-plugin-react-native": "^1.6.1" + "@fullstory/babel-plugin-react-native": "^1.6.3" }, "devDependencies": { "@babel/core": "^7.22.15", @@ -2866,9 +2866,9 @@ } }, "node_modules/@fullstory/babel-plugin-react-native": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@fullstory/babel-plugin-react-native/-/babel-plugin-react-native-1.6.1.tgz", - "integrity": "sha512-bRKzMdYdZlG1RKVNJMv3UXmXvJ2OIdvpwsOxJzCnG0LTINv8bqJ2s/9pXIj1O73ppPDfWRESMChlPjEn5JcLuw==", + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/@fullstory/babel-plugin-react-native/-/babel-plugin-react-native-1.6.3.tgz", + "integrity": "sha512-ucjtEoMB+VihR0jQQRNjIUZsrTW6RZ+S3aJVPiMmTQFEQmYAvv1rDf29ctVyWKPf+7tdK6HA29d9khRYuWvvoA==", "license": "MIT", "dependencies": { "@babel/parser": "^7.0.0", diff --git a/package.json b/package.json index 0ed839e..e6e216d 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ }, "dependencies": { "@fullstory/babel-plugin-annotate-react": "^2.3.2", - "@fullstory/babel-plugin-react-native": "^1.6.1" + "@fullstory/babel-plugin-react-native": "^1.6.3" }, "peerDependencies": { "expo": ">=47.0.0", diff --git a/src/__tests__/index.test.tsx b/src/__tests__/index.test.tsx index 40d1cf9..73f9b75 100644 --- a/src/__tests__/index.test.tsx +++ b/src/__tests__/index.test.tsx @@ -151,23 +151,20 @@ describe('Reading FS properties on iOS', () => { expect(ref).toHaveBeenLastCalledWith(null); }); - it.failing( - 'custom component with FS attributes does not have phantom ref injected into its props', - () => { - const childRef = React.createRef(); - - const CustomComponent = (props: { fsClass?: string; children?: React.ReactNode }) => { - // eslint-disable-next-line @typescript-eslint/no-unused-vars - const { fsClass: _fsClass, ...rest } = props; - return ; - }; - - render(); - - expect(childRef.current).not.toBeNull(); - expect((childRef.current as any)?._reactInternals?.type).toBe(View); - }, - ); + it('custom component with FS attributes does not have phantom ref injected into its props', () => { + const childRef = React.createRef(); + + const CustomComponent = (props: { fsClass?: string; children?: React.ReactNode }) => { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const { fsClass: _fsClass, ...rest } = props; + return ; + }; + + render(); + + expect(childRef.current).not.toBeNull(); + expect((childRef.current as any)?._reactInternals?.type).toBe(View); + }); it('component without FS attributes does not trigger setBatchProperties', () => { render();