question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Command failed: jest --config e2e/config.json --testNamePattern '^((?!:ios:).)*$' e2e

See original GitHub issue

Description

When i try to run detox test, I always getting an error:

$ detox test --configuration android
12:21:03.939 detox[10976] INFO:  [test.js] DETOX_CONFIGURATION="android" DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1651224063897 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern '^((?!:ios:).)*$' e2e
.)*$' was unexpected at this time.

C:\Users\olena\Documents\Simple2b\kryptr>  "C:\Users\olena\Documents\Simple2b\kryptr\node_modules\.bin\\node.exe"  "C:\Users\olena\Documents\Simple2b\kryptr\node_modules\.bin\\..\jest-expo\bin\jest.js" --config e2e/config.json --testNamePattern '((?!:ios:).)*$' e2e
12:21:04.073 detox[10976] ERROR: [cli.js] Command failed: jest --config e2e/config.json --testNamePattern '^((?!:ios:).)*$' e2e

Your environment

Detox version: 19.6.5 React Native version: 0.67.3 Node version: 16.14.0 Device model: android.emulator :Pixel_5_API_30 OS: windows Test-runner (select one): jest-circus

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

3reactions
sjransomcommented, Apr 29, 2022

Which version of jest-circus are you using?

I had a similar issue with the latest version so downgraded which fixed this for me: "jest-circus": "27.5.1"

2reactions
noomorphcommented, May 5, 2022

@d4vidi, I don’t plan to have this testNamePattern anymore in Detox 20. We can have skipping platform-specific tests in runtime via test environment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Detox attempts to run Android test when none is specified
... iOS test that I just ran. detox test node_modules/.bin/jest e2e --config=e2e/config.json --maxWorkers=1 --testNamePattern='^((?
Read more >
Migration Guide | Detox
detox[43764] ERROR: [cli.js] Error: Command failed: jest --config e2e/config.json --testNamePattern "^((?!:android:).)*$" --maxWorkers 1 e2e ...
Read more >
React Native end-to-end testing with Detox - LogRocket Blog
detox init -r jest detox[34202] INFO: [init.js] Created a file at path: e2e/config.json detox[34202] INFO: [init.js] Created a file at path: ...
Read more >
setup-detox-jest.mo - Dev Standards
Running Detox (on iOS) requires the following: ... Xcode 8.3+ with Xcode command line tools ... Add a jest config file e2e/config.json :....
Read more >
Setting Up Detox - ReactNativeTesting.io
Now, initialize Detox in your app to get some config files set up. We specify that we'll be using Jest as the test...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found