Tests fail on Android ExpoExample
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- android, react-native, typescript
- Lĩnh vực
- mobile-dev, testing-qa
Hướng nghiên cứu
Bắt đầu trong ExpoExample/tests/App.owl.tsx và tái hiện vấn đề bằng yarn && cd ExpoExample && yarn, tiếp theo là yarn owl:build:android và yarn owl:test:android. Kiểm tra cách lệnh kiểm thử Android phân giải import react-native-owl và so sánh báo cáo Jest với đầu ra lỗi. Được xem là hoàn tất khi bộ kiểm thử Android ExpoExample chạy mà không gặp lỗi phân giải module và báo cáo kết quả một cách nhất quán.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is there an existing issue for this?
- I have searched the existing issues
Code of Conduct
- I agree to follow this project's Code of Conduct
Code Sandbox link
No response
Bug report
Tried to run tests in react-native-owl/ExpoExample on Android.
May be a known issue:
https://github.com/FormidableLabs/react-native-owl/issues/139#issuecomment-1526473064
Steps to reproduce:
1. Clone react-native-owl
2. yarn && cd ExpoExample && yarn
3. yarn owl:build:android
4. yarn owl:test:android
Error:
yarn run v1.22.22
$ yarn owl test --platform android
$ node ../dist/cli/index.js test --platform android
[OWL - CLI] Starting websocket server.
[OWL - CLI] Running tests on android.
Performing Streamed Install
[OWL - WebSocket] Listening on port 8123.
Success
bash arg: -p
bash arg: com.ExpoExample
bash arg: -c
bash arg: android.intent.category.LAUNCHER
bash arg: 1
args: [-p, com.ExpoExample, -c, android.intent.category.LAUNCHER, 1]
arg: "-p"
arg: "com.ExpoExample"
arg: "-c"
arg: "android.intent.category.LAUNCHER"
arg: "1"
data="com.ExpoExample"
data="android.intent.category.LAUNCHER"
Events injected: 1
## Network stats: elapsed time=13ms (0ms mobile, 0ms wifi, 13ms not connected)
[OWL - WebSocket] The server received a message: OWL Client Connected!
[OWL - CLI] (Tests mode) Will compare latest images with the baseline.
[OWL - CLI] Will set the jest root to /Users/pablogomez-echegaray/Documents/GitHub/react-native-owl/ExpoExample.
FAIL __tests__/App.owl.tsx
● Test suite failed to run
Cannot find module 'react-native-owl' from '__tests__/App.owl.tsx'
> 1 | import {
| ^
2 | takeScreenshot,
3 | press,
4 | toExist,
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:306:11)
at Object.<anonymous> (__tests__/App.owl.tsx:1:1)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 0.46 s, estimated 19 s
Ran all test suites.
Test results written to: .owl/report/jest-report.json
(node:72810) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[OWL - CLI] Generating Report
[OWL - CLI] Report was built at /Users/pablogomez-echegaray/Documents/GitHub/react-native-owl/ExpoExample/.owl/report/index.html
[OWL - CLI] Tests completed on android.
Error: Command failed with exit code 1: jest --testMatch="**/?(*.)+(owl).[jt]s?(x)" --verbose --roots=/Users/pablogomez-echegaray/Documents/GitHub/react-native-owl/ExpoExample --runInBand --globals='{"OWL_CLI_ARGS":{"_":["test"],"platform":"android","p":"android","config":"./owl.config.json","c":"./owl.config.json","update":false,"u":false,"$0":"../dist/cli/index.js"}}' --json --outputFile=/Users/pablogomez-echegaray/Documents/GitHub/react-native-owl/ExpoExample/.owl/report/jest-report.json
at makeError (/Users/pablogomez-echegaray/Documents/GitHub/react-native-owl/node_modules/execa/lib/error.js:60:11)
at module.exports.sync (/Users/pablogomez-echegaray/Documents/GitHub/react-native-owl/node_modules/execa/index.js:194:17)
at module.exports.commandSync (/Users/pablogomez-echegaray/Documents/GitHub/react-native-owl/node_modules/execa/index.js:235:15)
at /Users/pablogomez-echegaray/Documents/GitHub/react-native-owl/dist/cli/run.js:211:54
at step (/Users/pablogomez-echegaray/Documents/GitHub/react-native-owl/dist/cli/run.js:33:23)
at Object.next (/Users/pablogomez-echegaray/Documents/GitHub/react-native-owl/dist/cli/run.js:14:53)
at fulfilled (/Users/pablogomez-echegaray/Documents/GitHub/react-native-owl/dist/cli/run.js:5:58) {
shortMessage: `Command failed with exit code 1: jest --testMatch="**/?(*.)+(owl).[jt]s?(x)" --verbose --roots=/Users/pablogomez-echegaray/Documents/GitHub/react-native-owl/ExpoExample --runInBand --globals='{"OWL_CLI_ARGS":{"_":["test"],"platform":"android","p":"android","config":"./owl.config.json","c":"./owl.config.json","update":false,"u":false,"$0":"../dist/cli/index.js"}}' --json --outputFile=/Users/pablogomez-echegaray/Documents/GitHub/react-native-owl/ExpoExample/.owl/report/jest-report.json`,
command: `jest --testMatch="**/?(*.)+(owl).[jt]s?(x)" --verbose --roots=/Users/pablogomez-echegaray/Documents/GitHub/react-native-owl/ExpoExample --runInBand --globals='{"OWL_CLI_ARGS":{"_":["test"],"platform":"android","p":"android","config":"./owl.config.json","c":"./owl.config.json","update":false,"u":false,"$0":"../dist/cli/index.js"}}' --json --outputFile=/Users/pablogomez-echegaray/Documents/GitHub/react-native-owl/ExpoExample/.owl/report/jest-report.json`,
escapedCommand: `jest "--testMatch=\\"**/?(*.)+(owl).[jt]s?(x)\\"" --verbose "--roots=/Users/pablogomez-echegaray/Documents/GitHub/react-native-owl/ExpoExample" --runInBand "--globals='{\\"OWL_CLI_ARGS\\":{\\"_\\":[\\"test\\"],\\"platform\\":\\"android\\",\\"p\\":\\"android\\",\\"config\\":\\"./owl.config.json\\",\\"c\\":\\"./owl.config.json\\",\\"update\\":false,\\"u\\":false,\\"$0\\":\\"../dist/cli/index.js\\"}}'" --json "--outputFile=/Users/pablogomez-echegaray/Documents/GitHub/react-native-owl/ExpoExample/.owl/report/jest-report.json"`,
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: undefined,
stderr: undefined,
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
Specify --help for available options
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Interestingly, the report seems to say all the test passed and failed at the same time.
- Ngôn ngữ chính
- TypeScript
- Star
- 694
- Fork
- 27
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của FormidableLabs/react-native-owl
-
Actively Maintained ?Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 5/100
FormidableLabs/react-native-owl#194 · 3 bình luận · 1 reaction ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
FormidableLabs/react-native-owl#191 · 3 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 30/100
FormidableLabs/react-native-owl#190 · 1 bình luận · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
FormidableLabs/react-native-owl#188 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
FormidableLabs/react-native-owl#186 · 1 bình luận · 1 reaction ·
Tất cả issue của FormidableLabs/react-native-owl
Issue tương tự
-
DQ assisgnment closing at CRĐang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
equinor/prisma-decision-web#919 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[DC] OneLogin sync imports a partial user list when an API request failsCó thể đã có người làm @RaphaelFakhri đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
bitwarden/directory-connector#1276 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
home-assistant/installer#324 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Mondriaan
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
knaw-huc/textannoviz#733 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày