mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: inline ENV variables when building excalidraw package (#4311)
This commit is contained in:
parent
a132f154cb
commit
96b31ecbce
9 changed files with 51 additions and 1 deletions
|
@ -1,6 +1,13 @@
|
|||
import "@testing-library/jest-dom";
|
||||
import "jest-canvas-mock";
|
||||
|
||||
import dotenv from "dotenv";
|
||||
|
||||
// jest doesn't know of .env.development so we need to init it ourselves
|
||||
dotenv.config({
|
||||
path: require("path").resolve(__dirname, "../.env.development"),
|
||||
});
|
||||
|
||||
jest.mock("nanoid", () => {
|
||||
return {
|
||||
nanoid: jest.fn(() => "test-id"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue