@zuplo/cli 1.14.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,8 +33,15 @@ function escapeRegExp(value) {
|
|
|
33
33
|
function generateTestContents(argv) {
|
|
34
34
|
return `
|
|
35
35
|
|
|
36
|
-
export
|
|
37
|
-
TEST_URL
|
|
36
|
+
export class TestHelper {
|
|
37
|
+
static get TEST_URL() {
|
|
38
|
+
const url = "${argv.endpoint}";
|
|
39
|
+
if (url !== "undefined") {
|
|
40
|
+
return url;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
throw new Error("TEST_URL is not set. Pass --endpoint <URL> to \`zuplo test\` on the CLI to set a value.");
|
|
44
|
+
}
|
|
38
45
|
}
|
|
39
46
|
|
|
40
47
|
import {
|