Files
Michael BiancoandGitHub 2a3dd6825b fix: hard fail on invalid railpack.json (#226)
* fix: hard fail if railpack.json cannot be parsed

* test: add shouldFail test.json expression

helpful if we expect the build to fail. There shouldn't be too many of these, but we'll need at least
a couple to make sure cases like railpack.json syntax errors hard fail.

* test: bad json syntax failure

* test: config file abs path, relative, and DNE cases

* refactor: move hujson helper into internal helpers

* fix: support abs config file path, fail if config file path does not exist

* fix: document relative config file path, no abs config file support

* fix: invalid config json

* test: snapshot update

* test: remove abs file config test

* test: remove custom java config

I know basically nothing about Java and after I fixed the syntax error which was causing this config file to not be picked up, this started failing. The proper Zulu version check which is the main purpose of this is still working fine so I think it's fine to remove these custom commands.

* fix: typo

* test: snapshot update
2025-09-09 19:09:46 -06:00

19 lines
321 B
JSON

[
{
"expectedOutput": "Kernel"
},
{
"expectedOutput": "custom start",
"configFile": "railpack.other.json"
},
{
"expectedOutput": "Hello via Bun",
"configFile": "railpack.invalid.json",
"shouldFail": true
},
{
"configFile": "railpack.malformed.json",
"shouldFail": true
}
]