Coder Social home page Coder Social logo

Add tests about sveltestrap HOT 7 OPEN

bestguy avatar bestguy commented on June 28, 2024
Add tests

from sveltestrap.

Comments (7)

DaniAcu avatar DaniAcu commented on June 28, 2024 1

Mmm okay, yeah move all sounds too much work to do. Maybe we could just keep it in the eyes but as long as this can scale and be easy to maintain, I'm fine with that. Thanks for the feedback 😄

from sveltestrap.

bestguy avatar bestguy commented on June 28, 2024

Taking a look at: https://github.com/testing-library/svelte-testing-library

Looks promising.

from sveltestrap.

bestguy avatar bestguy commented on June 28, 2024

WIP: #35

from sveltestrap.

bestguy avatar bestguy commented on June 28, 2024

Also: #37

from sveltestrap.

bestguy avatar bestguy commented on June 28, 2024

Tests have been started and merged, will update this issue with missing component tests.

from sveltestrap.

DaniAcu avatar DaniAcu commented on June 28, 2024

I'm new here, but I'm really happy to contribute. I'd like to know if we could change the folders a little bit. I mean currently we have a __test__ folder with all our test. But I wondering if we could move more to a component folders with test and inplamentation in the same folder.

  • src
    • Alert
      • Alert.svelte
      • Alert.spec.js
    • Button
      • Button.svelte
      • Button.spec.js

I think this could help to everyone to identify quickly which components has or not test, and if they need to add it 😄

from sveltestrap.

bestguy avatar bestguy commented on June 28, 2024

Hi @DaniAcu , thanks for the help. The tests thing is a jest standard, so ran with it. Might be better to stick with it since there are already .d.ts files too. Might be a little much 😅

from sveltestrap.

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.