I've just updated to meteor 1.3 and have been trying to use mocha for testing. I haven't used it before, so I'm not sure if I'm implementing it wrong, but I get the error
Test driver package practicalmeteor:mocha missing `runTests` export
in the chrome debug window when I run my app with
meteor test --driver-package practicalmeteor:mocha
I don't think the issue is with my tests, since the crash is happening as the app is starting. I do get the confirmation in the cmd that my app is running
=> App running at: http://localhost:3000/
I think you have 2.1.0_7 practicalmeteor:mocha package.
Try to update practicalmeteor:mocha package
meteor add practicalmeteor:mocha#2.1.1-rc.1
Related
Running build test for ios release locally is working fine, however it fails on Github actions enter image description here
It seems like your app build command (that you have provided in Detox config) is faulty and that is why your app is failing build. Unrelated to Detox.
I am trying to set up my project to run detox e2e tests that were generated by someone else. I am getting an issue that Async-Storage is null. The project runs properly if I am just doing run-android or run-ios, but when I try to run the detox tests, I get the error. Is there a way that I am supposed to mock this function like with Jest? I tried google the error and Async-Storage with detox, but I only get people having issues with the Android setup, with which I am not having issues. My issues only arise when running detox tests. Any help is greatly appreciated!
In case anyone has this same issue and runs across this, make sure you add this to your setup file for detox/jest:
import mockAsyncStorage from "#react-native-community/async-storage/jest/async-storage-mock";
jest.mock("#react-native-community/async-storage", () => mockAsyncStorage);
I use react-native with actual version and have tried to create a simple project. But while trying to create it by using
expo init AwesomeProject
the whole process hangs.
I have tried to look for a solution by searching on the internet but without any luck.
The error could be seen in the following screenshot:
That error generally means that a file is being accessed by two different things at 'around' the same time. And 90% of those times it is because of an anti-virus or similar.
Its a permission error, so my advice, try to do it after a fresh reboot and boot the powershell as admin, disable antivirus etc..
If still does not work reinstall nodejs/npm.
I had the same experience. The project gets created using React-native. When you try to run it, the 'Metro' interface comes up. There is an android phone on the USB drive which has previously been used to run Android Studio created projects successfully. However, on the command shell the app hangs in Metro.
While trying to run the project from Android Studio snow cat, there are build errors (red) in the App manifest file and there is this exception.
Build failed due to java.lang.NullPointerException
Installed expo-cli (C:\Reactive-native>npm install -g expo-cli). The app fails to run and hangs on the connected Android phone(Samsung 21) using the Expo Go client. This client has no problem having been tested in Snackbar.
I have a question in the Expo forum and probably someone will answer!
I am developing a mobile app by using nativescript with angular. I want to include an image upload in my app. So, I tried by cloning git repo for nativescript-imagepicker. It is ok if I used the command tns run. If I used tns run ios/android --bundle, it gave me the following error:
What is the solution to fix this?
Did you installed the plugin through
tns plugin add nativescript-imagepicker
If not, try checking if you have the dependency with:
tns plugin list
if nativescript-imagepicker is not there, try reinstalling it. I got it working with app
I generated sample expo app, pull the latest https://github.com/expo/test-suite. I run test-suite in the simulator, it shows a spinner which never disappears.
Can you provide me an instruction how to run the tests?
I see some warnings as well while running test-suite.
Warning
Warning: Using unversioned Expo SDK. Do not publish until you set sdkVersion in exp.json
Warning
Warning: 'react' peer depencency missing. Run `npm ls` in /project/test-suite to see full warning.
If there is an issue running your project, please run `npm install` in /project/test-suite and restart.
Thanks
the repository that you linked is not a "test" suit as you understand it. It is not for testing your app. It exist for the developers of Expo as a tool, to test Expo before new releases of it.
Check out more about unit testing and test driven development;
https://en.wikipedia.org/wiki/Unit_testing
https://en.wikipedia.org/wiki/Development_testing
If your goal is to test your own app in you will need a simulator or a development device;
https://docs.expo.io/versions/v18.0.0/guides/up-and-running.html