1.1.4 • Published 4 months ago

jestpagenerator v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

DEPRECATED

DEPRECATED, PLEASE INSTALL THE FOLLOWING

postmantojest

JestPaGenerator

Hello, 👋
JestPaGenerator is a command-line tool that generates Jest page object files based on data from a JSON Postman collection file.
This tool creates separate .js or .ts files for each folder in your collection, with each folder becoming a single .js or .ts script, and each endpoint within the folders becomes an export function that can be used in your test files.

Support Javascript & TypeScript

  • Javascript

JestPaGenerator Javascript

  • TypeScript

JestPaGenerator Javascript

Installation

To use JestPaGenerator, you can install it globally using npm:

npm install -g jestpagenerator

Usage

To generate Jest page files, run the following command:

jestconvert path/to/file.json

that will generate .js or .ts files based on your prefered language, inside pages folder

Notes

  • This is just a basic converter, and you may need to adjust the code if your endpoints are complex, but at least now we don't have to create the script from scratch ;)
  • Remember to create a folder called files in your project's root directory and put all the files inside it if your endpoints contain files, because all files will be hardcode to ./files/yourfilename.extension
  • If you need sample JEST boilerplate go here for Javascript, or here for TypeScript

License

This project is licensed under the MIT License - see the LICENSE file for details.

Happy Testing 👋

1.1.4

4 months ago

1.1.3

5 months ago

1.1.2

5 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago