Skip to content

Commit b17140e

Browse files
Loosen the APPSIGNAL_AGENT_PATH assertion
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`.
1 parent 4f2f08f commit b17140e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__tests__/config.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ describe("Configuration", () => {
294294
})
295295

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

0 commit comments

Comments
 (0)