0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00
logto/packages/core/jest.setup.ts

18 lines
374 B
TypeScript
Raw Normal View History

/**
* Setup environment variables for unit test
*/
import envSet from '@/env-set';
import { privateKeyPath } from './jest.global-setup';
// eslint-disable-next-line unicorn/prefer-top-level-await
(async () => {
process.env = {
...process.env,
OIDC_PRIVATE_KEY_PATHS: privateKeyPath,
OIDC_COOKIE_KEYS: '["LOGTOSEKRIT1"]',
};
await envSet.load();
})();