From 137fcb06ec411ff84dca0083c7565145dd792f30 Mon Sep 17 00:00:00 2001 From: Sergey Konovalov Date: Mon, 16 Oct 2023 11:14:22 +0300 Subject: [PATCH] [npm] Add checkFileExpire.js to npm scripts --- npm-shrinkwrap.json | 9 +++++++++ package.json | 2 ++ tests/perf/checkFileExpire.js | 4 ++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index cd957864..8d3010dd 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1733,6 +1733,15 @@ "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=" }, + "cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.1" + } + }, "cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", diff --git a/package.json b/package.json index 4a477526..f652cd93 100644 --- a/package.json +++ b/package.json @@ -64,9 +64,11 @@ }, "devDependencies": { "@jest/globals": "29.5.0", + "cross-env": "7.0.3", "jest": "29.5.0" }, "scripts": { + "perf-expired": "cd ./DocService&& cross-env NODE_ENV=development-windows NODE_CONFIG_DIR=../Common/config node ../tests/perf/checkFileExpire.js", "unit tests": "cd ./DocService && jest unit --config=../tests/jest.config.js", "integration tests": "cd ./DocService && jest integration --config=../tests/jest.config.js", "tests": "cd ./DocService && jest --inject-globals=false --config=../tests/jest.config.js" diff --git a/tests/perf/checkFileExpire.js b/tests/perf/checkFileExpire.js index bcf02622..3ffdb556 100644 --- a/tests/perf/checkFileExpire.js +++ b/tests/perf/checkFileExpire.js @@ -44,8 +44,8 @@ const storage = require('./../../Common/sources/storage-base'); const storageFs = require('./../../Common/sources/storage-fs'); const operationContext = require('./../../Common/sources/operationContext'); const utils = require('./../../Common/sources/utils'); -const docsCoServer = require("./DocsCoServer"); -const gc = require("./gc"); +const docsCoServer = require("./../../DocService/sources/DocsCoServer"); +const gc = require("./../../DocService/sources/gc"); let ctx = operationContext.global;