Skip to content

Commit 47f5def

Browse files
authored
[AppConfig] Fix integration test failure (Azure#19867)
in Azure#19713, this test (package.spec.ts) was moved into `node` sub folder, and the relative path is updated for the `unit-test` case but not the `integration-test` case, thus causing integration test failure. This PR fixes the relative path for integration test too.
1 parent 912ea68 commit 47f5def

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/appconfiguration/app-configuration/test/internal/node/package.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ describe("packagejson related tests", () => {
1919
try {
2020
// For integration tests
2121
packageJsonContents = JSON.parse(
22-
fs.readFileSync(path.join(__dirname, "../../../package.json"), { encoding: "utf-8" })
22+
fs.readFileSync(path.join(__dirname, "../../../../package.json"), { encoding: "utf-8" })
2323
);
2424
} catch (e) {
2525
// For unit tests
2626
packageJsonContents = JSON.parse(
27-
fs.readFileSync(path.join(__dirname, "../../package.json"), { encoding: "utf-8" })
27+
fs.readFileSync(path.join(__dirname, "../../../package.json"), { encoding: "utf-8" })
2828
);
2929
}
3030

0 commit comments

Comments
 (0)