That tutorial is a bit outdated but mostly correct and should continue to work, so some additional info is needed before I can help you. What command have you used to create a configmap and how does the configmap look like now? E.g. if you use more than one .js file for your scripting, all of them must be present in the configmap: this is not the case described in tutorial but it is described in the README, Mutli-file tests section. Also, how did you specify your yaml?
My repo structure goes like this. An index.js file on the root folder which calls different .js files from other folders. Could you please help me on this?
It should work If it doesn’t, please let me know the details.
As for the localFile, you can use that too of course but it is not the recommended way: you need to build your own custom image for that and it was added for the cases when neither Configmap nor VolumeClaim can be used.