Giter Site home page Giter Site logo

Add tests about gqtx HOT 4 CLOSED

FedericoBiccheddu avatar FedericoBiccheddu commented on June 10, 2024
Add tests

from gqtx.

Comments (4)

n1ru4l avatar n1ru4l commented on June 10, 2024 1

I think it also makes sense to test the TypeScript API of this library

from gqtx.

FedericoBiccheddu avatar FedericoBiccheddu commented on June 10, 2024

I agree! I've never tested TS types, but can try.

dtslint seems to be a valid option.

Can you help me? 😄

from gqtx.

n1ru4l avatar n1ru4l commented on June 10, 2024

If you are writing the library in TypeScript, don't use dtslint (https://github.com/microsoft/dtslint#setup)

I think it makes more sense to use the options built into the typescript compiler: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-9.html#-ts-expect-error-comments

For an example see: https://github.com/sikanhe/gqtx/pull/12/files#diff-8d994fbf3724bd6655cf9e633fceced3

Also having TypesCript 3.9.3 as a development dependency in this project does not require consumers using TypeScript version 3.9.3 (regarding your comment #12 (comment))

from gqtx.

FedericoBiccheddu avatar FedericoBiccheddu commented on June 10, 2024

I'm working again on this issue.

I'd like focus exclusively in testing output types because of my lack of experience in testing types.

from gqtx.

Related Issues (20)

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.