mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-21 03:58:11 +08:00
* update to webpack 5 * update babel * update eslint * update cheerio * update npm min to v7 * revert engine change * generate package lock with npm v6 (lockfileVersion 1) * add region to test setup * update blueprint popover2 * tabindex changes due to blueprint popover2 revision * update snapshots * update lodash and pako * fix typo * fix lodash refactoring * more lodash refactoring * update babel and blueprintjs * update jest support packages * update puppeteer * update regl * update react-icons and react-helmet * update react and react-dom
26 lines
671 B
JavaScript
26 lines
671 B
JavaScript
const {
|
|
SecretsManagerClient,
|
|
GetSecretValueCommand,
|
|
} = require("@aws-sdk/client-secrets-manager");
|
|
|
|
const { setup } = require("jest-environment-puppeteer");
|
|
|
|
const client = new SecretsManagerClient({ region: "us-west-2" });
|
|
|
|
const secretValueRequest = {
|
|
SecretId: "corpora/backend/dev/auth0-secret",
|
|
};
|
|
|
|
const command = new GetSecretValueCommand(secretValueRequest);
|
|
|
|
module.exports = async () => {
|
|
await setup();
|
|
try {
|
|
const secret = JSON.parse((await client.send(command)).SecretString);
|
|
process.env.TEST_ACCOUNT_PASS = secret.test_account_password;
|
|
} catch (error) {
|
|
console.error(error);
|
|
}
|
|
console.log(process.env.TEST_ACCOUNT_PASS);
|
|
};
|