From 82e846bc938869c12214c3a1275d13db0b895466 Mon Sep 17 00:00:00 2001 From: Ivan Starkov Date: Wed, 10 Jun 2026 14:29:25 +0300 Subject: [PATCH] test: failing tests for inline direction inherited from ancestor --- .../tests/native/styles-parsing/dir.test.tsx | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/packages/uniwind/tests/native/styles-parsing/dir.test.tsx b/packages/uniwind/tests/native/styles-parsing/dir.test.tsx index 80681852..0fc93e96 100644 --- a/packages/uniwind/tests/native/styles-parsing/dir.test.tsx +++ b/packages/uniwind/tests/native/styles-parsing/dir.test.tsx @@ -62,4 +62,28 @@ describe('Dir', () => { expect(getStylesFromId('ltr-red').backgroundColor).toBe(TW_RED_500) }) + + test('inline RTL inherited from ancestor', () => { + mockRTL(false) + + const { getStylesFromId } = renderUniwind( + + + , + ) + + expect(getStylesFromId('rtl-red').backgroundColor).toBe(TW_RED_500) + }) + + test('inline LTR inherited from ancestor', () => { + mockRTL(true) + + const { getStylesFromId } = renderUniwind( + + + , + ) + + expect(getStylesFromId('ltr-red').backgroundColor).toBe(TW_RED_500) + }) })