In my index.test.ts file, I currently have this code snippet:
import { it,describe, expect } from "vitest";
import {readEvents,readCommands} from "../index";
describe("command and event loaders",() => {
it("event loader should work properly",() => {
let el = readEvents;
expect(el).not.toThrowError;
})
it("command loader should work properly",() => {
let el = readCommands;
expect(el).not.toThrowError;
})
})
Upon running vitest --run --reporter verbose, an error is triggered:
Error: dotenv-expand failed to expand env vars. Perhaps you need to escape $
?