Skip to content

Commit

Permalink
Loosen the APPSIGNAL_AGENT_PATH assertion
Browse files Browse the repository at this point in the history
Previously, the APPSIGNAL_AGENT_PATH assertion assumed the project
directory was named nodejs, so it checked if the path ended on
`nodejs/ext`. That didn't work on my machine, so the test now only
checks if the path ends with `/ext`.
  • Loading branch information
jeffkreeftmeijer committed Mar 20, 2024
1 parent 4f2f08f commit b17140e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__tests__/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ describe("Configuration", () => {
})

it("writes private constants to the environment", () => {
expect(env("_APPSIGNAL_AGENT_PATH")).toMatch(/nodejs\/ext$/)
expect(env("_APPSIGNAL_AGENT_PATH")).toMatch(/\/ext$/)
expect(env("_APPSIGNAL_PROCESS_NAME")).toMatch(/node$/)
expect(env("_APPSIGNAL_LANGUAGE_INTEGRATION_VERSION")).toEqual(
`nodejs-${VERSION}`
Expand Down

0 comments on commit b17140e

Please sign in to comment.