Skip to content

ci: fix npm/package.json location references - #2249

Merged
alxndrsn merged 2 commits into
getodk:nextfrom
alxndrsn:fix-test-service-path
Sep 17, 2026
Merged

alxndrsn merged 2 commits into
getodk:nextfrom
alxndrsn:fix-test-service-path

Conversation

@alxndrsn

@alxndrsn alxndrsn commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains work foundational to:


For legacy reasons, some npm commands were being invoked in ./test/nginx instead of ./test. This works because npm looks for the nearest package.json file and uses its directory as PWD. But also quite confusing, especially in the case of npm run test:service, which has nothing to do with the code in test/nginx.

What has been done to verify that this works as intended?

  • ci

Why is this the best possible solution? Were any other approaches considered?

Could be left as-is.

How does this change impact users? Describe intentional behavior changes from code updates. What are the regression risks?

No risk.

Is this change user-facing or otherwise noteworthy to users? If so, please add an entry for it in CHANGELOG.md.

No.

Does this change require updates to documentation? If so, please file an issue here and include the link below.

No.

For legacy reasons, some `npm` commands were being invoked in `./test/nginx` instead of `./test`.  This works because `npm` looks for the nearest `package.json` file and uses its directory as PWD.  But also quite confusing, especially in the case of `npm run test:service`, which has nothing to do with the code in `test/nginx`.
@alxndrsn
alxndrsn marked this pull request as ready for review September 15, 2026 12:40
@alxndrsn
alxndrsn merged commit d61c207 into getodk:next Sep 17, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants