Files
server/tests/env-setup.js
Georgii Petrov 3ab1b64cb8 Forgotten files commands (#415)
* [ds] Add forgotten files comands

* Feature fixes 1

* Feature fixes 2

* [feature] Refactor validateCommand and deleteForgotten

* Feature fixes 3

* Feature fixes 4

* [test] Move jest module

* Feature fixes 5

* [test] Move jest.config.js

---------

Co-authored-by: Sergey Konovalov <Sergey.Konovalov@onlyoffice.com>
2023-05-29 23:48:08 +03:00

15 lines
409 B
JavaScript

const platforms = {
'win32': 'windows',
'darwin': 'mac',
'linux': 'linux'
};
const platform = platforms[process.platform];
process.env.NODE_ENV = `development-${platform}`;
process.env.NODE_CONFIG_DIR = '../Common/config';
if (platform === 'mac') {
process.env.DYLD_LIBRARY_PATH = '../FileConverter/bin/';
} else if (platform === 'linux') {
process.env.LD_LIBRARY_PATH = '../FileConverter/bin/';
}