0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00
logto/packages/core/jest.setup.js
Gao Sun 08ce66f317
refactor(core): use SSOT for env variables (#578)
* refactor(core): use SSOT for env variables

* fix(core): tests
2022-04-20 14:14:37 +08:00

12 lines
280 B
JavaScript

/* eslint-disable unicorn/prefer-module */
/**
* Setup environment variables for unit test
*/
const { privateKeyPath } = require('./jest.global-setup.js');
process.env = {
...process.env,
OIDC_PRIVATE_KEY_PATH: privateKeyPath,
};
/* eslint-enable unicorn/prefer-module */