For anyone looking for how read files in tests, You can just import like so:
import DATA from "./data.txt";