usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
27.31k stars 1.25k forks source link

Making new scripts should not require Golden membership #2477

Open mstaal opened 5 months ago

mstaal commented 5 months ago

I have checked the following:

Describe the bug

When right clicking a folder and selecting New script, a payment pop-up shows up. But the documentation does not claim for scripts to be a payed feature.

image

.bru file to reproduce the bug

No response

Screenshots/Live demo link

https://github.com/usebruno/bruno/assets/3716335/68a2269a-4f21-47ef-b3a5-8065d1892f82

bpoulaindev commented 5 months ago

The paid feature here is the ability to edit the .js script in Bruno. But you can edit it in your own IDE, and require this script in pre/post script or tests without a golden license

mstaal commented 4 months ago

@bpoulaindev : Perhaps you could make this clearer. Do you have some documentation on this feature?

bpoulaindev commented 4 months ago

This isn't mentioned in the docs you're right. You can require a script placed at the root of your collection and require it this way :

const testScript = require('./script.js')

You could also require a script that is nested inside folders in your collection but you would have to specify, require assumes you start at your collection's root.