GithubHelp home page GithubHelp logo

Add Tests about rackt-codemod HOT 10 CLOSED

reactjs avatar reactjs commented on May 2, 2024
Add Tests

from rackt-codemod.

Comments (10)

taion avatar taion commented on May 2, 2024

Yup - @cpojer was on my case about this as well. We should take the scaffolding from his codemod repos, then use the changes to our tests as fixtures.

from rackt-codemod.

joshblack avatar joshblack commented on May 2, 2024

I've had success running tests with the following structure: https://github.com/joshblack/codemods/tree/master/test just adding in folders for tests as developers make issues on the repo. Any thoughts? Would love to help contribute to this repo and adding tests seems like a good start.

from rackt-codemod.

timdorr avatar timdorr commented on May 2, 2024

@joshblack Yeah, definitely! If you want to open a PR, that would be super duper helpful.

from rackt-codemod.

cpojer avatar cpojer commented on May 2, 2024

The setup from https://github.com/reactjs/react-codemod can literally be copy and pasted. A bunch of other forks use the same structure, it would be nice to keep some sort of consistency.

from rackt-codemod.

joshblack avatar joshblack commented on May 2, 2024

Sounds good, consistency is important.

from rackt-codemod.

joshblack avatar joshblack commented on May 2, 2024

Do we have example project files that the mods were ran against that I can start filling the test cases out with?

from rackt-codemod.

taion avatar taion commented on May 2, 2024

@joshblack The tests and examples on history and React Router, actually.

from rackt-codemod.

joshblack avatar joshblack commented on May 2, 2024

Perfect, thanks for the heads up!

from rackt-codemod.

joshblack avatar joshblack commented on May 2, 2024

Just wanted to give an update, currently working on this here: https://github.com/joshblack/rackt-codemod just have to add the history tests and I'll open up a PR.

from rackt-codemod.

cpojer avatar cpojer commented on May 2, 2024

Awesome!

from rackt-codemod.

Related Issues (4)

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.