Git Product home page Git Product logo

Comments (14)

christianmalek avatar christianmalek commented on May 28, 2024 1

@marceloavf I didn't think out anything yet. But since it's only a store creator you're able to use the standard vuex testing utilities (see async actions in https://vuex.vuejs.org/en/testing.html)

from vuex-rest-api.

christianmalek avatar christianmalek commented on May 28, 2024 1

Hello @slurmulon,

Please take your time and again: Thanks for your contribution.

from vuex-rest-api.

christianmalek avatar christianmalek commented on May 28, 2024

Add https://github.com/typicode/json-server for tests

from vuex-rest-api.

christianmalek avatar christianmalek commented on May 28, 2024

Use circle-ci

from vuex-rest-api.

christianmalek avatar christianmalek commented on May 28, 2024

Add Git precommit hook with transpiler and test runner, same procedure for city test

from vuex-rest-api.

marceloavf avatar marceloavf commented on May 28, 2024

Is there some easy way to do unit tests with vuex-rest-api ?

from vuex-rest-api.

slurmulon avatar slurmulon commented on May 28, 2024

@christianmalek I'm happy to start writing some tests. I am using this module in a production application (about to be more than one!), so I have a vested interest in keeping things not broken 🙂

What testing frameworks do you prefer? I generally use mocha, but recently I've shifted more towards TAP frameworks such as tape since they avoid the weird environment and setup problems that you typically encounter with frameworks like mocha and jasmine.

from vuex-rest-api.

christianmalek avatar christianmalek commented on May 28, 2024

from vuex-rest-api.

slurmulon avatar slurmulon commented on May 28, 2024

Great! I'll put some time towards it this weekend, although there will probably be some initial friction as I haven't played with unit tests in TypeScript yet.

from vuex-rest-api.

christianmalek avatar christianmalek commented on May 28, 2024

from vuex-rest-api.

slurmulon avatar slurmulon commented on May 28, 2024

So I didn't get to it as soon as I would have liked (ya know, because life stuff)... but I have started fleshing out more tests: https://github.com/slurmulon/vuex-rest-api/tree/tests

I will have more availability next week to really hammer on these 💪

from vuex-rest-api.

christianmalek avatar christianmalek commented on May 28, 2024

@slurmulon Hey! Any news? :)

from vuex-rest-api.

christianmalek avatar christianmalek commented on May 28, 2024

@slurmulon Ping

from vuex-rest-api.

christianmalek avatar christianmalek commented on May 28, 2024

Already in progress by myself.

from vuex-rest-api.

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.