React-native-i18n: Not correctly linked when used in tests

Created on 1 Mar 2018  路  2Comments  路  Source: AlexanderZaytsev/react-native-i18n

console.warn: react-native-i18n module is not correctly linked

Can we change this to:

} else if (__DEV__ && !__TEST__) {
  console.warn('react-native-i18n module is not correctly linked');
}

or something like that?

Most helpful comment

You need to mock native modules for testing. An example exist in /example

All 2 comments

You need to mock native modules for testing. An example exist in /example

Awesome. Worked perfectly!

Maybe we should add a note in the readme about this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vonovak picture vonovak  路  7Comments

SvetoslavSlavov picture SvetoslavSlavov  路  4Comments

wyzzy picture wyzzy  路  5Comments

sibelius picture sibelius  路  4Comments

tregismoreira picture tregismoreira  路  7Comments