Giter VIP home page Giter VIP logo

Comments (5)

perich avatar perich commented on August 22, 2024 1

Yeah, unit tests would certainly be nice to have. The highest value test would probably be testing the computePrice() method for all the exchange classes. It would also make contributing easier. I would certainly support adding a library like https://jestjs.io/ to the project.

I'm a fan of TypeScript as well, but a full TypeScript rewrite is probably out of reach at this point. If someone actually did it, I would happily merge it. But it's a big ask, and the fact that all of the exchange classes are totally encapsulated means that types shouldn't be too hard to reason about.

from ethereum-dex-prices-service.

stefanmendoza avatar stefanmendoza commented on August 22, 2024 1

I started digging into the unit tests last night. Aiming to have a PR out in a couple days. 👍

from ethereum-dex-prices-service.

perich avatar perich commented on August 22, 2024 1

resolved by #15

from ethereum-dex-prices-service.

saturn-network avatar saturn-network commented on August 22, 2024

While writing #8 I ended up debugging some typos that could have easily be avoided if the project was using TypeScript (on a somewhat related note)

from ethereum-dex-prices-service.

stefanmendoza avatar stefanmendoza commented on August 22, 2024

Got the first PR out for unit tests. Once this pattern / config is +1'd, I can start on the other exchanges.

#15

from ethereum-dex-prices-service.

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.