Skip to content

Commit

Permalink
fix: Environment path change
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-bennett committed Oct 1, 2024
1 parent e4fb99d commit 380cb89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ import { readFileSync } from "fs";
import NodeEnvironment from "jest-environment-node";
import { Script } from "vm";
import {log} from "./logger";
import {GLOBAL_VARS_JSON_PATH} from "./setup";
import {join} from "path";


export const GLOBAL_VARS_JSON_PATH = join(__dirname, "global.vars.json");

export function setGlobalsWithJsonString(globals: any, jsonString: string) {
const globalVars = JSON.parse(jsonString);
const globalVarKeys = Object.keys(globalVars);
Expand Down

0 comments on commit 380cb89

Please sign in to comment.