Inside my index.test.ts file, I have the following code:
import { it,describe, expect } from "vitest";
import {readEvents,readCommands} from "../index";
describe("command and event loaders",() => {
it("event loader should work proper",() => {
let el = readEvents;
expect(el).not.toThrowError;
})
it("command loader should work properly",() => {
let el = readCommands;
expect(el).not.toThrowError;
})
})
When I run; vitest --run --reporter verbose, I get that following error:
Error: dotenv-expand failed to expand env vars. Maybe you need to escape $
?
Check in your.env if some value contains '$', if so then you must escape it
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.