No exported functions in script

So i followed the instructions here: app.k6.io - Performance testing for developers, like unit-testing, for performance

These instructions do not work. I raised this with support, and they said “they would let dev team know”. As a paying customer, I just want to underline how terrible this is, that support cannot answer basic setup questions, and documentation is incorrect. But I digress.

My project id is: 3567859
My project name is “testname”

When i create the script.js file entire contents are:

export let options = {
  ext: {
    loadimpact: {
      projectID: 3567859,
      name: "testname"
    }
  }
}

When i run the file with k6 cloud script.js i get:

      /\      |‾‾| /‾‾/   /‾‾/   
 /\  /  \     |  |/  /   /  /    
/  \/    \    |     (   /   ‾‾\  

/ \ | |\ \ | (‾) |
/ __________ \ |__| _\ ____/ .io

ERRO[0000] no exported functions in script

What exactly is the problem? The “testname” script runs perfectly well from the gui, am i missing something?

Your test still needs some code to run, right? Options are meaningless if you don’t specify what should be executed, so you still need to export a default function, see this for details: https://k6.io/docs/getting-started/running-k6/