Code Monkey home page Code Monkey logo

Comments (3)

thim81 avatar thim81 commented on May 26, 2024

Some example reference build in Javascript:
https://github.com/bahmutov/schema-shot

Which seems to do exactly what I want to achieve, except it is in Javascript which would be the strange duck in the PHPunit test pond.

from phpunit-snapshot-assertions.

sebastiandedeyne avatar sebastiandedeyne commented on May 26, 2024

Hi @thim81,

First of all, thanks for the detailed proposal! I wouldn't mind having this included in the package if we're able to flesh out the details, but I don't want to maintain too much code for it, since it's not part of the core functionality here.

I'm not sure if we'll be able to do a good conversion though... For example, we won't be able to automatically determine nullable types.

Regarding in implementing something like this, check out custom drivers.

https://github.com/spatie/phpunit-snapshot-assertions#writing-custom-drivers

Lastly, if you find a solution but we don't feel good supporting it here, we'll gladly link to your package so no work is lost :)

from phpunit-snapshot-assertions.

spatie-bot avatar spatie-bot commented on May 26, 2024

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.

from phpunit-snapshot-assertions.

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.