GithubHelp home page GithubHelp logo

Example tests about flux HOT 18 CLOSED

facebook avatar facebook commented on April 24, 2024
Example tests

from flux.

Comments (18)

nobodyguy avatar nobodyguy commented on April 24, 2024

Yeah, I was thinking about the same 👍

from flux.

justinbelcher avatar justinbelcher commented on April 24, 2024

👍

from flux.

fisherwebdev avatar fisherwebdev commented on April 24, 2024

Yes, this was something I was thinking about for a code example and blog
post. Hoping to get to this idea and also a blog post about immutable data
in the coming week or two.
On Aug 8, 2014 10:20 PM, "Justin Belcher" [email protected] wrote:

[image: 👍]


Reply to this email directly or view it on GitHub
#20 (comment).

from flux.

justinbelcher avatar justinbelcher commented on April 24, 2024

Probably too specific for a blog post, but one thing I've found tricky/messy is testing Store functions that don't emit change events. And for those that do, making Jest wait until the action has processed to verify behavior.

from flux.

nobodyguy avatar nobodyguy commented on April 24, 2024

@fisherwebdev I think it's perfect topic for a blog post and immutable data also sounds great!

from flux.

sunnyrjuneja avatar sunnyrjuneja commented on April 24, 2024

👍

from flux.

dmitrig01 avatar dmitrig01 commented on April 24, 2024

👍 :-)

from flux.

lenage avatar lenage commented on April 24, 2024

👍

from flux.

cirocosta avatar cirocosta commented on April 24, 2024

👍

from flux.

iest avatar iest commented on April 24, 2024

👍

from flux.

naoufal avatar naoufal commented on April 24, 2024

👍

from flux.

marco-loche avatar marco-loche commented on April 24, 2024

👍

from flux.

AlbanMinassian avatar AlbanMinassian commented on April 24, 2024

👍

from flux.

dariocravero avatar dariocravero commented on April 24, 2024

👍

from flux.

fisherwebdev avatar fisherwebdev commented on April 24, 2024

Testing Flux Applications
http://facebook.github.io/react/blog/2014/09/24/testing-flux-applications.html

Also, example code:
https://github.com/facebook/flux/blob/master/examples/flux-todomvc/js/stores/__tests__/TodoStore-test.js
https://github.com/facebook/flux/blob/master/examples/flux-chat/js/stores/__tests__/UnreadThreadStore-test.js

from flux.

sunnyrjuneja avatar sunnyrjuneja commented on April 24, 2024

@fisherwebdev thanks bill! probably can close this issue tho.

from flux.

justin808 avatar justin808 commented on April 24, 2024

@fisherwebdev Did you add docs on how to run the tests, and should they be passing? I just pulled the lastest and get errors running npm test from the example directories. Should I open a new issue for this?

from flux.

cirocosta avatar cirocosta commented on April 24, 2024

@justin808 this is somewhat related to #68 regarding documenting the build process for the examples. For running the examples test one needs to actually go into the example's folder, install dependencies and then run the tests (e.g,cd examples/flux-chat && npm install && npm test && cd ...). This is needed as the intention was (i suspect) to not agglomerate unrelated dependencies (which is the expected).

from flux.

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.