Otherwise it can throw an undefined error:
uncaught exception: TypeError: TestData is undefined : ShardingTest@/mydata/mongo/jstests/libs/shardingtest.js:1499:17
Easiest way to reproduce this is to run
let st = new ShardingTest({shards: 1})
On the mongo shell without using resmoke.py