Skip to content

Commit d50f44d

Browse files
authored
Merge pull request #1 from jedwards1211/patch-2
test: add test for NodeJS.ProcessEnv type input
2 parents 09ce129 + 520e1b9 commit d50f44d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/types/test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@ const dbHost: string = parsed["DB_HOST"];
1717

1818
const parsedFromBuffer = parse(Buffer.from("JUSTICE=league\n"));
1919
const justice: string = parsedFromBuffer["JUSTICE"];
20+
21+
config({
22+
// make sure the type accepts process.env (it didn't in the past)
23+
processEnv: process.env,
24+
});

0 commit comments

Comments
 (0)