mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
17c63cd2d9
* feat(core): cookie keys configuration * refactor: improved wording * refactor: improved wording * fix(core): test
16 lines
314 B
TypeScript
16 lines
314 B
TypeScript
/**
|
|
* Setup environment variables for unit test
|
|
*/
|
|
|
|
import envSet from '@/env-set';
|
|
|
|
import { privateKeyPath } from './jest.global-setup';
|
|
|
|
(async () => {
|
|
process.env = {
|
|
...process.env,
|
|
OIDC_PRIVATE_KEY_PATH: privateKeyPath,
|
|
OIDC_COOKIE_KEYS: '["LOGTOSEKRIT1"]',
|
|
};
|
|
await envSet.load();
|
|
})();
|