Skip to content

Commit 2bfa3ae

Browse files
committed
Add GUIDA_REGISTRY environment variable to child process execution in tests
1 parent 2cc955e commit 2bfa3ae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v24.9.0
1+
v25.1.0

tests/maybe-map.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe("maybe map", () => {
77

88
childProcess.execSync(
99
`../../bin/index.js make src/MaybeMap.elm`,
10-
{ cwd: path.join(__dirname, "..", "assets", "some-application") }
10+
{ cwd: path.join(__dirname, "..", "assets", "some-application"), env: { ...process.env, GUIDA_REGISTRY: "https://package.elm-lang.org" } }
1111
);
1212

1313
const duration = Date.now() - start;

tests/tuples.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe("tuples", () => {
66
expect(() => {
77
childProcess.execSync(
88
`../../bin/index.js make src/GuidaTupleN.guida`,
9-
{ cwd: path.join(__dirname, "..", "assets", "some-application") }
9+
{ cwd: path.join(__dirname, "..", "assets", "some-application"), env: { ...process.env, GUIDA_REGISTRY: "https://package.elm-lang.org" } }
1010
);
1111
}).not.toThrow();
1212
});

0 commit comments

Comments
 (0)