You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the Jest mock files introduced in #303 the tests fail on our VSTS Hosted build agent with the following error:
Validation Error:
Module .\node_modules\appcenter\test\AppCenterMock.js in the setupFiles option was not found.
<rootDir> is: D:_work\1\s\src\CustomerDesk.MobileApp
Configuration Documentation: https://facebook.github.io/jest/docs/configuration.html
The problem seems to be in the path specification of the mock files that is added during the installation into the package.json by appcenter:
If you're developing for React Native iOS, run the following command and paste the output below: pod --version
N/A
Please enable verbose logging for your app using [MSAppCenter setLogLevel: MSLogLevelVerbose]; before your call to [AppCenterReactNative register]; (or any other SDK registration). For Android, use AppCenter.setLogLevel(android.util.Log.VERBOSE); before your SoLoader.init call. Include the logs here:
N/A, it is a build issue
The text was updated successfully, but these errors were encountered:
no23reason
changed the title
Jest mocks have their paths specified wrong
Jest mocks have their paths specified incorrectly
Jun 27, 2018
This issue has been fixed in #340 and it is now released in v1.7.0 of this SDK. Thanks for reporting this issue to us, we really appreciate it. I am closing this issue now.
Description
After the Jest mock files introduced in #303 the tests fail on our VSTS Hosted build agent with the following error:
The problem seems to be in the path specification of the mock files that is added during the installation into the package.json by
appcenter
:If I patch the file using sed right after the installation finishes (and before we run the tests) to look like this:
everything works fine. Could the file specifications use the
<rootDir>
by default to ensure this works everywhere?Details
react-native info
Environment:
OS: Windows 10
Node: 10.0.0
Yarn: 1.6.0
npm: 5.6.0
Watchman: Not Found
Xcode: N/A
Android Studio: Not Found
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.4 => 0.55.4
If you're developing for React Native iOS, run the following command and paste the output below:
pod --version
N/A
Please enable verbose logging for your app using
[MSAppCenter setLogLevel: MSLogLevelVerbose];
before your call to[AppCenterReactNative register];
(or any other SDK registration). For Android, useAppCenter.setLogLevel(android.util.Log.VERBOSE);
before yourSoLoader.init
call. Include the logs here:N/A, it is a build issue
The text was updated successfully, but these errors were encountered: