簡體   English   中英

Vitest,dotenv-expand 無法擴展環境變量

[英]Vitest, dotenv-expand failed to expand env vars

在我的 index.test.ts 文件中,我有以下代碼:

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;
    })
})

當我跑步時; vitest --run --reporter 冗長,我收到以下錯誤:

錯誤:dotenv-expand 無法擴展環境變量。 也許你需要逃避$

如果某些值包含“$”,請檢查 your.env,如果是,則必須將其轉義

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM