Skip to content

[FEATURE] To add the generation of both postman-echo and hopscotch-echo in snapshot.test.js file of packages/template #1373

Description

@ItshMoh

Why do we need this improvement?

After the merging of this PR. We need to change the snapshot.test.js file here to include the generation of Readme.md file for both postman-echo.yml file and hopscotch-echo.yml file in two seperate folders. currenlty while running the npm test only the Readme.md file for hopscotch-echo.yml is being generated. We also have to change the snapshot test


    const client = await readFile(path.join(testResultPath, testOutputFile), 'utf8');
    expect(client).toMatchSnapshot();
  });

to look for the README.md also.

How will this change help?

It will make the testing efficient and also easy to verify the generated Readme.md file for both asyncapi document.

Screenshots

No response

How could it be implemented/designed?

The implementation which will help in this issue is implemented in node-js template . we have to follow the given implmentation and try to use it for our use case.

🚧 Breaking changes

No

👀 Have you checked for similar open issues?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue?

Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status
    Archive

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions