Skip to content

Commit

Permalink
[release/qcg/3.9.1] Fix issue with importing test setup file in non-t…
Browse files Browse the repository at this point in the history
…est environment (#2674)

* updates the import of the test setup to be done only if application is running in test environment
* patch version bump for release
  • Loading branch information
graduta authored Nov 25, 2024
1 parent 87ac251 commit 810469a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion QualityControl/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { LogManager, HttpServer, WebSocket } from '@aliceo2/web-ui';
const logger = LogManager.getLogger(`${process.env.npm_config_log_label ?? 'qcg'}/index`);
import path from 'path';
import { setup } from './lib/api.js';
import { initializeNockForCcdb } from './test/setup/testSetupForCcdb.js';

// Reading config file
import { config } from './lib/config/configProvider.js';
Expand Down Expand Up @@ -55,6 +54,7 @@ const ws = new WebSocket(http);

if (process.env.NODE_ENV === 'test') {
// Initialize nock for CCDB if we are in test environment
const { initializeNockForCcdb } = await import('./test/setup/testSetupForCcdb.js');
initializeNockForCcdb();
}
setup(http, ws);
4 changes: 2 additions & 2 deletions QualityControl/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion QualityControl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aliceo2/qc",
"version": "3.9.0",
"version": "3.9.1",
"description": "O2 Quality Control Web User Interface",
"author": "George Raduta",
"contributors": [
Expand Down

0 comments on commit 810469a

Please sign in to comment.