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>
This commit is contained in:
Georgii Petrov
2023-05-29 23:48:08 +03:00
committed by GitHub
parent def9f9aeae
commit 3ab1b64cb8
6 changed files with 3927 additions and 80 deletions

15
tests/env-setup.js Normal file
View File

@ -0,0 +1,15 @@
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/';
}