Git Product home page Git Product logo

Comments (6)

Olipro avatar Olipro commented on May 25, 2024 1

I imagine that most of the discrepancies will be that it's a superior implementation of MiniMock. Hopefully one day the game will update to the 2023 release too.

I have a release here: https://www.greyrepo.xyz/posts/unit-testing-mocking-library

The example is a bit fatty but you should be able to extract what you need - if not, let me know and I should be able to give you a minimum sample sometime tomorrow.

from greybel-js.

Olipro avatar Olipro commented on May 25, 2024

I may have more information: It does seem that globals such as include_lib are also injected into locals - which is not the case in GreyHack. Could this be the cause of the problem?

from greybel-js.

ayecue avatar ayecue commented on May 25, 2024

That might be a bug then. I'll take a look as soon as I have time. Thanks for reporting.

Also just a side note the interpreter which is used by greybel is not actually the same as the MiniScript interpreter therefore there might some discrepancies compared to how MiniScript/GreyScript works. But since this is supposed to emulate the original behavior I'll try to fix those issues. So if you find any more discrepancies in the future feel free to create more issues. Anyway just a heads up ;)

from greybel-js.

ayecue avatar ayecue commented on May 25, 2024

Alright I found the culprit. I have a PR ready which going to be merged soonish #109

Do you have an example code with your mock library where you mock a function? Just for testing.

from greybel-js.

ayecue avatar ayecue commented on May 25, 2024

Alright the PR got merged. It worked for me while testing. I'll close this ticket as soon as you can confirm that it works for you as well.

from greybel-js.

Olipro avatar Olipro commented on May 25, 2024

Replacement of globals also working fine now!

from greybel-js.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.