I’m trying k6 for the first time and everything went smoothly a few days ago with the test example provided in the documentation. However, when I ran the same test today I’m getting the following error message:
ERRO[0000] could not initialize './globalContacts.js': could not load JS test 'file:///Users/juanluis/Documents/Source/MangoChango/Amplion/code/js/loadTests/__tests__/globalContacts.js': file:///Users/juanluis/Documents/Source/MangoChango/Amplion/code/js/loadTests/__tests__/globalContacts.js: Line 16:25 Unexpected token function (and 4 more errors)
Could you please help me out with this error?