mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-23 06:28:12 +08:00
* Disabled @blueprintjs/classes-constants. #2288. * thuang-eslint-bp-off (#2344) * Disabled @blueprintjs/classes-constants on webpack dev and shared. #2288. * Added TS recommended, suppress lint errors codemod. * Added per-error/warning ignore for tests. * Added per-error/warning ignore for configuration. * Added per-error/warning ignore for src. Removed suppress package. * Minor linting. Co-authored-by: Timmy Huang <tihuan@users.noreply.github.com>
31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
// eslint-disable-next-line @typescript-eslint/ban-ts-comment --- FIXME: disabled temporarily on migrate to TS.
|
|
// @ts-ignore FIXME: 'globalSetup.ts' cannot be compiled under '--isola... Remove this comment to see the full error message
|
|
const {
|
|
SecretsManagerClient,
|
|
GetSecretValueCommand,
|
|
// eslint-disable-next-line @typescript-eslint/no-var-requires --- FIXME: disabled temporarily on migrate to TS.
|
|
} = require("@aws-sdk/client-secrets-manager");
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-var-requires --- FIXME: disabled temporarily on migrate to TS.
|
|
const { setup } = require("jest-environment-puppeteer");
|
|
|
|
const client = new SecretsManagerClient({ region: "us-west-2" });
|
|
|
|
const deploymentStage = process.env.DEPLOYMENT_STAGE || "test";
|
|
|
|
const secretValueRequest = {
|
|
SecretId: `corpora/backend/${deploymentStage}/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);
|
|
}
|
|
};
|