Skip to content
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

Template uses 10 years old sinon version #34

Open
akudev opened this issue May 16, 2024 · 4 comments
Open

Template uses 10 years old sinon version #34

akudev opened this issue May 16, 2024 · 4 comments

Comments

@akudev
Copy link
Collaborator

akudev commented May 16, 2024

<script src="../../resources/sap/ui/thirdparty/sinon.js"></script>

loads "sinon.js" from UI5's thirdparty folder, which means it's super-old.

@saard
Copy link

saard commented May 16, 2024

Also, since the template is using sinon-qunit it will break if you add a later version as "sinon.test" function is not available.
I changed to

<script src="../thirdparty/sinon-17.0.2.js"></script> (I placed the sinon file manually)

and removed the sinon-qunit line

@heimwege
Copy link

heimwege commented Jun 6, 2024

@saard what's the benefit of using sinon-qunit? I couldn't find any documentation 🤷🏻 At least my qunit tests run perfectly fine without it (using sinon nevertheless)

@saard
Copy link

saard commented Jun 6, 2024

@heimwege no benefit, it's really old.
however, since the template still uses sinon-qunit if you had tests that are using it and you upgrade to a more advanced sinon (while still using the sinon-qunit) they will break.

@heimwege
Copy link

heimwege commented Jun 6, 2024

@saard thanks for the update. That's good news for me as I'm using the preview middleware for the on-the-fly generation of the test glue code. The sinon-qunit is not part of the template (because I didn't know what it is used for and everything worked perfectly fine without it, so I didn't add it 😄).

So somehow this issue is now linked to #35 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants