From 8c95952d7fbd871c9d4f79d898a3cb14e6e22f35 Mon Sep 17 00:00:00 2001 From: Feng Yu Date: Tue, 15 Mar 2022 22:05:06 +0800 Subject: [PATCH] fix: set testEnvironment to jsdom in react native example (#12581) * try to fix ci * fix: set testEnvironment to jsdom in react native example --- examples/react-native/jest.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/react-native/jest.config.js b/examples/react-native/jest.config.js index c9932a503e04..4ea28b54a72f 100644 --- a/examples/react-native/jest.config.js +++ b/examples/react-native/jest.config.js @@ -2,6 +2,7 @@ const {resolve} = require('path'); module.exports = { preset: 'react-native', + testEnvironment: 'jsdom', transform: { '\\.(js|ts|tsx)$': require.resolve('react-native/jest/preprocessor.js'), },