-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update test framework #767
base: devel
Are you sure you want to change the base?
Update test framework #767
Conversation
@gadicc hereby a sample for the changes to the test framework. |
😮 I'm a little in shock at how quickly you did this!! Reviewing now 🙏 🙏 |
Thanks @nocodehummel, looks like we're off to a great start here 🙏 I must admit, I had never actually thought about having fetchDevel and JFMC code co-exist. It's actually a great idea that will let us progressively switch over the project piece by piece, which is a lot more manageable. So thanks :) All looks good so far. But not sure if the cookie code will work with multiple
Thanks so much! 🙏 Yeah, Thanks again! |
Node.js 18 is now active maintenance and Node.js 16 is no longer supported. I think this opens for using the Node global (experimental) fetch API instead of node-fetch. All our test cases are passing using the fetch API (Node v18.18.2). I will commit a change for you to check. I had a quick look at the usage of different environments and it looks like that is related to the fetch API. Is there any other reason? |
The usage of
|
Yeah, I'd love to move off Re different environments, it was to cover browser vs node. Sorry, I didn't quite follow your last comment re |
Hi @gadicc, thanks for the feedback and looks like we are aligned. |
Perfect! Thanks so much. Sure, no pressure whatsoever on my side, take your time, and thanks again :) Yeah in yahoo-finance2 we don't use In JFMC we inspect the Thanks again, happy coding, and take your time 🙏 |
Hey @nocodehummel, just checking in. Absolutely no pressure from my side, I'm also swamped with stuff, just wanted to see how things are going your side and if I can help at all. |
Hi, there is has been too many other priorities, and holiday season started. |
Thanks, @nocodehummel, that's perfect. Never any pressure from my side, just wanted to check in. Good luck with your other priorities, enjoy the holidays, and we'll touch base after the summer 🙏 🌞 |
Refactor test framework #766 to improve TDD and untangle test code from actual code.
Changes
Type
Comments/notes
In the
getCookies
sample the source code has no test related logic or test related properties. The test case can be run independently via command line or JEST Runner. API testing can focus on the test cases and does not need to worry about the caching (naming etc).