refactor: organize source web and tests by business module
This commit is contained in:
1 parent
9854d2d5c2
commit
2aed328774
113 files changed
+189
-183
No files matched your search
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
'use strict';
|
||||
const fs=require('node:fs'),http=require('node:http'),{respondToPing}=require('../../src/service-ping.cjs');
|
||||
const fs=require('node:fs'),http=require('node:http'),{respondToPing}=require('../../src/platform/service/ping.cjs');
|
||||
const file=process.env.ORDER_FIXTURE_COUNT,generation=(fs.existsSync(file)?Number(fs.readFileSync(file,'utf8')):0)+1;fs.writeFileSync(file,String(generation));
|
||||
const startedAt=new Date().toISOString();let hang=false;
|
||||
const server=http.createServer((req,res)=>{fs.writeFileSync(file+'.heartbeat',String(req.headers['x-order-watchdog']||''));if(hang)return;respondToPing(req,res,{token:process.env.ORDER_SUPERVISOR_TOKEN,instanceId:process.env.ORDER_SUPERVISOR_INSTANCE,startedAt});});
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// Local test fixture, never used by the production launcher. No BPM/mail access.
|
||||
const fs=require('node:fs');const os=require('node:os');const path=require('node:path');
|
||||
const {Store}=require('../../src/dashboard-store.cjs');const {createDashboard}=require('../../src/dashboard.cjs');
|
||||
const {Store}=require('../../src/modules/dashboard/store.cjs');const {createDashboard}=require('../../src/app/dashboard.cjs');
|
||||
const dir=fs.mkdtempSync(path.join(os.tmpdir(),'order-dashboard-ui-'));const store=new Store(dir);
|
||||
store.bootstrap('preview','Preview-only-test-2026');
|
||||
const server=createDashboard({store,outputDir:dir});
|
||||
|
||||
Reference in new issue
Block a user