File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
packages/plugin-reanimated/src Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @callstack/repack " : patch
3+ ---
4+
5+ Ignore setUpTests warning from Reanimated by default
Original file line number Diff line number Diff line change @@ -5,5 +5,13 @@ export class ReanimatedPlugin implements RspackPluginInstance {
55 apply ( compiler : Compiler ) {
66 // add rules for transpiling wih reanimated loader
77 compiler . options . module . rules . push ( reanimatedModuleRules ) ;
8+
9+ // ignore the 'setUpTests' warning from reanimated which is not relevant
10+ compiler . options . ignoreWarnings = compiler . options . ignoreWarnings ?? [ ] ;
11+ compiler . options . ignoreWarnings . push ( ( warning ) =>
12+ / ' ` s e t U p T e s t s ` i s a v a i l a b l e o n l y i n J e s t e n v i r o n m e n t \. ' / . test (
13+ warning . message
14+ )
15+ ) ;
816 }
917}
You can’t perform that action at this time.
0 commit comments