Check `file.versions` is set

Why isn't an error thrown when `NODE_ENV=test`?