Coder Social home page Coder Social logo

Comments (8)

vikasg52 avatar vikasg52 commented on July 17, 2024

I want to generate the snapshots like this: last donut chart. Kindly suggest if I am doing something wrong.
image

from jest-stare.

vikasg52 avatar vikasg52 commented on July 17, 2024

@dkelosky Could you please help with the issue mentioned above?

from jest-stare.

dkelosky avatar dkelosky commented on July 17, 2024

hi @vikasg52 - I think you'll have to add a snapshot test to get that type of chart. For example:

it("should match some snapshot", () => {
  expect({ some: "data"}).toMatchSnapshot();
});

Can you give something like that a try?

from jest-stare.

vikasg52 avatar vikasg52 commented on July 17, 2024

from jest-stare.

dkelosky avatar dkelosky commented on July 17, 2024

No problem, is it ok to close? Is this working for you now?

from jest-stare.

vikasg52 avatar vikasg52 commented on July 17, 2024

Actually- I tried the approach but anyhow it din't work for me. I am using frisby framework seems like it is not supported with that:

const frisby = require('frisby');
const test= require('snapshot-diff/extend-expect');
const test1 = frisby.Joi;

image

image

from jest-stare.

dkelosky avatar dkelosky commented on July 17, 2024

I can see how the snapshot method is not part of the way expect is called in your example. However, since it's built on jest, it seems that it should work. Did you try the example I shared verbatim?

from jest-stare.

github-actions avatar github-actions commented on July 17, 2024

Stale issue message

from jest-stare.

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.