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
/Users/deepaksharma/Desktop/Agent-Upgrade/faveo-helpdesk-react-native/node_modules/flow-parser/flow_parser.js:818
throw a}function
^
JestAssertionError: expect(received).toEqual(expected) // deep equality
Expected: "We have sent an activation link to h@demo.c***. Please check your mailbox and click on the link to activate your account then try again."
Received: ""
at Timeout.toEqual [as _onTimeout] (/Users/deepaksharma/Desktop/Agent-Upgrade/faveo-helpdesk-react-native/__tests__/VerifyEmail/VerifyEmail.test.js:62:53)
at listOnTimeout (node:internal/timers:569:17)
at processTimers (node:internal/timers:512:7) {
matcherResult: {
actual: '',
expected: 'We have sent an activation link to h@demo.c***. Please check your mailbox and click on the link to activate your account then try again.',
message: '\x1B[2mexpect(\x1B[22m\x1B[31mreceived\x1B[39m\x1B[2m).\x1B[22mtoEqual\x1B[2m(\x1B[22m\x1B[32mexpected\x1B[39m\x1B[2m) // deep equality\x1B[22m\n' +
'\n' +
'Expected: \x1B[32m"We have sent an activation link to h@demo.c***. Please check your mailbox and click on the link to activate your account then try again."\x1B[39m\n' +
'Received: \x1B[31m""\x1B[39m',
name: 'toEqual',
pass: false
}
}
Node.js v18.19.0
error Command failed with exit code 7.
Additional context
I'm using "moxios": "^0.4.0", for mocking api call and "babel-plugin-module-resolver": "^5.0.0" for axios config like
axiosconfig.js
import axios from "axios";
import AsyncStorage from "@react-native-community/async-storage";
// Set config defaults when creating the instance
const axiosInstance = axios.create();
axiosInstance.interceptors.request.use(async function (config) {
const Token = await AsyncStorage.getItem('token');
config.baseURL = await AsyncStorage.getItem('url');
config.headers['Authorization'] = Token ? 'Bearer ' + Token : '';
return config;
});
export default axiosInstance;
Version
29.6.3
Steps to reproduce
My js file
test file
Expected behavior
It should be pass but fail.
Actual behavior
Additional context
I'm using
"moxios": "^0.4.0"
, for mocking api call and"babel-plugin-module-resolver": "^5.0.0"
for axios config likeaxiosconfig.js
.babelrc
Environment
System: OS: macOS 14.3.1 CPU: (8) arm64 Apple M1 Binaries: Node: 18.19.0 - /opt/homebrew/bin/node Yarn: 1.22.17 - /opt/homebrew/bin/yarn npm: 10.2.3 - /opt/homebrew/bin/npm npmPackages: jest: ^29.6.3 => 29.7.0
The text was updated successfully, but these errors were encountered: