Closed kamok closed 6 years ago
No, there is no workaround, only your app can use the localize function or L pipe as it uses the iOS or Android API and resources. You will have to use the translated text in your test or override the localize function to not translate the text and just return the key when testing.
My TypeScript compiler keeps asking for
./src/localize
, regardless if I useLocalizePipe
orlocalize
function in my e2e. Any ideas? Other packages I require from node_modules works fine.ts compiler also doesn't throw any error on the editor until when I run the e2e suite.
I'm guessing this is because the e2e tests don't load the
NativeScriptLocalizeModule
normally done on the@NgModule
. Is there a workaround?