Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#175119553] Fix dotenv integration with jest #111

Merged
merged 1 commit into from
Oct 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion StoreSpidLogs/__test__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ describe("StoreSpidLogs", () => {
}
};
const blobItem = await index(mockedContext as any, aSpidMsgItem);
console.log(blobItem);
const blob = blobItem as IOutputBinding;
const encryptedSpidBlobItem = blob.spidRequestResponse;
const decryptedRequestPayload = toPlainText(
Expand Down
2 changes: 0 additions & 2 deletions env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#This file is used for testing (jest),
#and must be renamed to .env (but not committed)
APPINSIGHTS_INSTRUMENTATIONKEY=foo
AZURE_NH_HUB_NAME=azhub
AZURE_NH_ENDPOINT=Endpoint=sb://host.docker.internal:30000;SharedAccessKeyName=DefaultFullSharedAccessSignature;SharedAccessKey=foobar
Expand Down
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require("dotenv").config({ path: "env.example" });

module.exports = {
preset: "ts-jest",
setupFiles: ["dotenv/config"],
testEnvironment: "node",
testPathIgnorePatterns: ["dist", "/node_modules"]
};