I have a test file which tests an application using data from other js file. When I want to test with other data I have to copy the first test, rename it to test2 and then use second js file.
Now, I want to have just one test file, which will first take data from js file 1, then after it has done with it, go and take the data from next js file, and do whole test again until there are no more js files.
For example test1:
var config = require('./configs/config1');
Example 2 (copy test1 and rename to test2):
var config = require('./configs/config2');