This is an automated email from the ASF dual-hosted git repository.
dcremonini pushed a commit to branch feat/check-existing-file-in-configurator
in repository https://gitbox.apache.org/repos/asf/openserverless-task.git
The following commit(s) were added to
refs/heads/feat/check-existing-file-in-configurator by this push:
new f9c9bc4 fix(configurator): show a message stating that file was not
found instead of being invalid. Better pathname shown.
f9c9bc4 is described below
commit f9c9bc47b1913dfd9fff2e690de06d32290d7fb9
Author: Daniele Cremonini <[email protected]>
AuthorDate: Mon Oct 7 22:00:11 2024 +0200
fix(configurator): show a message stating that file was not found instead
of being invalid. Better pathname shown.
---
util/config/configurator/tests/index.test.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/config/configurator/tests/index.test.ts
b/util/config/configurator/tests/index.test.ts
index 492af72..eb35110 100644
--- a/util/config/configurator/tests/index.test.ts
+++ b/util/config/configurator/tests/index.test.ts
@@ -100,7 +100,7 @@ describe("parsePositionalFile", () => {
const filename = "not-existing.json";
const jsonRes = await parsePositionalFile(filename);
expect(jsonRes.success).toBe(false);
- expect(jsonRes.message).toStartWith(FileNotFoundJsonMsg);
+ expect(jsonRes.message).toBe(FileNotFoundJsonMsg +
Bun.pathToFileURL(filename));
});
test("not a json file", async () => {