Giter Site home page Giter Site logo

Add tests about reforum HOT 7 CLOSED

proshoumma avatar proshoumma commented on May 9, 2024
Add tests

from reforum.

Comments (7)

proshoumma avatar proshoumma commented on May 9, 2024

Hey man,
Thank you. It would be great if you could add the tests. Jest is already in the packages. You can use it to perform the tests.

from reforum.

jboxman avatar jboxman commented on May 9, 2024

I've been working through adding tests for the backend. I've used tape for this as it is what I am most familiar with. (Jest throws a stack trace when trying to mock Mongoose; it's a known issue that isn't fixed yet.) I'll use Jest for the frontend testing when I get that far.

Thanks.

from reforum.

marcmoo avatar marcmoo commented on May 9, 2024

Thank you Shoumma for this beautiful forum presented by react node mongo.
I am also doing my forum using this framework right now, everything was doing well but i encountered a problem and could not get it solved by myself.

i always use create react app for my projects before and there always be 2 servers in dev mode.

this thing maybe because of the webpack stuff.

i was trying to create some new parts showing other info. actions and reducers were created under the Views folder(for eg. Views/Map/actions and Views/Map/reducers. I also edited the App/store to combine that reducer with other reducers (combineReducers({......, mapData:mapReducer}), however, it looks like in the Views/Map/index page, this.props.mapData always show its initial state which initialized in the reducer without get rerendered. could anyone help? thank you!

from reforum.

marcmoo avatar marcmoo commented on May 9, 2024

here is my code:
https://reforum-app.herokuapp.com/general/discussion/could_anyone_help_me__reducer_state_doesn_t_get_rerenderd_in_index_js_5a3afc604584ca000458dd82

from reforum.

proshoumma avatar proshoumma commented on May 9, 2024

@gogogous88 could you please provide your repo link so I can make a better look?

from reforum.

marcmoo avatar marcmoo commented on May 9, 2024

@shoumma, i figured it out....only because {} was left over for a case import..... thank you again everything going fine right now!

from reforum.

proshoumma avatar proshoumma commented on May 9, 2024

@gogogous88 glad that you figured out the issue. 👍

from reforum.

Related Issues (13)

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.