Closed arthedza closed 2 years ago
Still not working!
for this test:
expect(new ReactNativeBiometrics().simplePrompt).toHaveBeenCalledWith({ success: true })
I'm getting:
Error: expect(received).toHaveBeenCalledWith(...expected)
Matcher error: received value must be a mock or spy function
Received has type: function
Received has value: [Function anonymous]
Hi @arthedza, are tests working for you?
by the way, when testing, if I import from:
import ReactNativeBiometrics, { BiometryType } from 'react-native-biometrics'
I get:
TypeError: react_native_biometrics_1.default is not a constructor
therefore, I have to import from:
import ReactNativeBiometrics, { BiometryType } from 'react-native-biometrics/index'