File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 126
126
"openapi-typescript-codegen" : " ^0.27.0" ,
127
127
"prettier" : " ^3.2.5" ,
128
128
"react-test-renderer" : " 18.2.0" ,
129
+ "text-encoding" : " ^0.7.0" ,
129
130
"ts-jest" : " ^29.1.2" ,
130
131
"typescript" : " ^5.1.3"
131
132
},
Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ import "@testing-library/jest-native";
4
4
5
5
import "@testing-library/jest-native/extend-expect" ;
6
6
7
+ import { TextEncoder , TextDecoder } from "util" ;
8
+
9
+ ( global as any ) . TextEncoder = TextEncoder ;
10
+ ( global as any ) . TextDecoder = TextDecoder ;
11
+
7
12
jest . mock ( "react-native/Libraries/Animated/NativeAnimatedHelper" ) ;
8
13
9
14
// Mock AsyncStorage
Original file line number Diff line number Diff line change @@ -14445,6 +14445,11 @@ text-encoding-polyfill@^0.6.7:
14445
14445
resolved "https://registry.yarnpkg.com/text-encoding-polyfill/-/text-encoding-polyfill-0.6.7.tgz#4d27de0153e4c86eb2631ffd74c2f3f57969a9ec"
14446
14446
integrity sha512-/DZ1XJqhbqRkCop6s9ZFu8JrFRwmVuHg4quIRm+ziFkR3N3ec6ck6yBvJ1GYeEQZhLVwRW0rZE+C3SSJpy0RTg==
14447
14447
14448
+ text-encoding@^0.7.0:
14449
+ version "0.7.0"
14450
+ resolved "https://registry.yarnpkg.com/text-encoding/-/text-encoding-0.7.0.tgz#f895e836e45990624086601798ea98e8f36ee643"
14451
+ integrity sha512-oJQ3f1hrOnbRLOcwKz0Liq2IcrvDeZRHXhd9RgLrsT+DjWY/nty1Hi7v3dtkaEYbPYe0mUoOfzRrMwfXXwgPUA==
14452
+
14448
14453
text-table@^0.2.0:
14449
14454
version "0.2.0"
14450
14455
resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
You can’t perform that action at this time.
0 commit comments