I am trying to load files into an array and then run tests on them. This is my code:
let files: string[] = []
describe.only("Name of the group", () => {
beforeAll(() => {
files = ["a", "b"]
})
test.each(files)("runs", f => {
console.log(f)
})
})
However, I get
Error:
.eachcalled with an empty Array of table data.
What am I doing wrong?
Thanks!