Replies: 1 comment 1 reply
-
hey @Horsty80 sometimes when I need to modify the npm package, I use npm patch-package for that purpose, hope that helps |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey community 😇
I try to mutualise autologin implementation inside a shared library.
My actual codecept.conf.*
My getAutoLogin methods in another file
And the customLogin method is defined inside
actor
with this and locate builder.Like this everything is working.
So now i want to use the same method
getAutoLogin()
with some variable but the main concept is the same throught a npm module.But isn't working. When i try, i was unable to use locate() or inject() or even I
I've this king of error. (depending on some try of implementation)
The only difference is that i'm not using actor() anymore.
And my ts file is like this
my codecept.conf.* doesn't change only the import path of getAutoLogin is now from my package than a local file
How can achieve this kind of tricky stuff ?
My purpose is to mutualise my returned autologin response and use it through a lot of application.
Each application are in a isolated repo, but the login process are the same, that means each app using the same login form.
And repeat the same autologin configuration are a bit annoying. We want to make update only once on the check or login step than update on each application e2e codebase. Only pull new version of the package.
Someone can help me :)
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions