-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
It is little bit difficult to override an array.
const { stash, parse } = require('pactum');
stash.setDirectOverride(true);
stash.addDataTemplate({
"BASE:CONFIG": {
"name": "name of the config",
"api_key": "key",
"secrets": [
{
"name": "one"
},
{
"name": "two"
}
]
},
"NEW:CONFIG":{
"@DATA:TEMPLATE@": "BASE:CONFIG",
"secrets": []
}
});
Doesn't override the secrets to empty
console.log(parse({ "@DATA:TEMPLATE@": "NEW:CONFIG" }));
Describe the solution you'd like
It should be easy to override an array or specific element in an array.
Describe alternatives you've considered
NA
Additional context
NA
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request