Tôi gặp phải lỗi nhập kỳ lạ khi tôi thử kiểm tra ứng dụng gốc phản ứng của mình với sự vui nhộn. Tôi có babel-jest, babel-preset-reaction-native, jest, jest-react-native và phản ứng-test-render tất cả các cài đặt nhưng nhận được thông báo lỗi này khi tôi chạy thử nghiệm npm.Mã thông báo nhập không mong muốn - thử nghiệm Phản ứng gốc với Jest
bộ ● Thử nghiệm thất bại trong việc chạy
/Users/maftalion/www/stars20/kiosk/node_modules/native-base/index.js:4
import Drawer from './Components/vendor/react-native-drawer';
^^^^^^
**SyntaxError: Unexpected token import**
at transformAndBuildScript (node_modules/jest-runtime/build/transform.js:316:10)
at Object.<anonymous> (src/routes/Identification.js:3:17)
at Object.<anonymous> (src/routes/router.js:4:21)
thử nghiệm Suites: 1 thất bại, 1 trôi qua, 2 tổng Các xét nghiệm: 1 trôi qua, 1 tổng Snapshots: 1 trôi qua, 1 tổng Thời gian: 1.011s
Thêm ngữ cảnh về cách giải quyết này: https://github.com/GeekyAnts/NativeBase/issues/396#issuecomment -270116326 – dadads