diff --git a/.yarnrc.yml b/.yarnrc.yml index ffb1f261..d69d1ffa 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,2 +1,4 @@ nodeLinker: node-modules npmMinimalAgeGate: '3d' +npmPreapprovedPackages: + - react-test-config diff --git a/test-apps/native/jestSetup.js b/test-apps/native/jestSetup.js index 614b8ad7..0ee38474 100644 --- a/test-apps/native/jestSetup.js +++ b/test-apps/native/jestSetup.js @@ -1,6 +1,12 @@ import { configure } from 'reassure'; +import { configure as configureRtc } from 'react-test-config'; configure({ testingLibrary: 'react-native', verbose: true, }); + +configureRtc({ + enableOwnerStacks: false, +}) + diff --git a/test-apps/native/package.json b/test-apps/native/package.json index 6e22b48a..63c8c774 100644 --- a/test-apps/native/package.json +++ b/test-apps/native/package.json @@ -31,6 +31,7 @@ "eslint": "^10.4.1", "jest": "^30.4.2", "prettier": "^3.8.3", + "react-test-config": "^0.1.0", "reassure": "workspace:^", "test-renderer": "1.2.0", "typescript": "^6.0.3" diff --git a/yarn.lock b/yarn.lock index 5a4d950a..b5bc1a1d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10209,6 +10209,15 @@ __metadata: languageName: node linkType: hard +"react-test-config@npm:^0.1.0": + version: 0.1.0 + resolution: "react-test-config@npm:0.1.0" + peerDependencies: + react: ^19.0.0 + checksum: 10c0/ab5559ceb2900374ea56286b9679ccc6e292acd8611f2bb763c661f64981d15dc508defe4c2887817843e8e7c85c595bd0503d3f4db02896bba6f34103b58f25 + languageName: node + linkType: hard + "react@npm:19.2.3": version: 19.2.3 resolution: "react@npm:19.2.3" @@ -10291,6 +10300,7 @@ __metadata: prettier: "npm:^3.8.3" react: "npm:19.2.3" react-native: "npm:0.85.3" + react-test-config: "npm:^0.1.0" reassure: "workspace:^" test-renderer: "npm:1.2.0" typescript: "npm:^6.0.3"