Replies: 3 comments
-
Nevermind, i just need to create new javascript module in js like normal and it works without problems :P
you put that file in node_modules folder with name helloWorld.js then you do this in Bruno:
you should see in console "Hello world" message. |
Beta Was this translation helpful? Give feedback.
-
Nice that you figured it out @Estegar ! I would not recommend putting it inside I would recommend creating a |
Beta Was this translation helpful? Give feedback.
-
Can we have the custom script shared between collections? I have a common auth script for all collections but do not want to duplicate it. Edit: Found a solution! For anyone looking to share scripts between collections: #2000 (reply in thread) |
Beta Was this translation helpful? Give feedback.
-
I'm trying out Bruno and so far it looks promising, we want to switch from Postman. The only thing i need here is a way to make some helper functions, that i will later import/require in my test scripts.
I want to create a .js file with some functions/classes etc. and then require them in test scripts?
Is there a way to do it?
Maybe there is a place where i can define my functions that will be available in test scripts?
I'm not very familiar with javascript, maybe i'm missing something here?
Beta Was this translation helpful? Give feedback.
All reactions