|
1 |
| -import { BuildSequence } from '../types'; |
2 |
| -import * as fs from 'fs'; |
3 |
| -import { executeBuildSequence } from './utils'; |
4 |
| -import { isIntegrationTest } from 'src/common/utils'; |
5 |
| -import { PRDHandler } from '../handlers/product-manager/product-requirements-document/prd'; |
6 |
| -import { UXSMDHandler } from '../handlers/ux/sitemap-document'; |
7 |
| -import { DBRequirementHandler } from '../handlers/database/requirements-document'; |
8 |
| -import { DBSchemaHandler } from '../handlers/database/schemas/schemas'; |
9 |
| -import { BackendCodeHandler } from '../handlers/backend/code-generate'; |
10 |
| -import { ProjectInitHandler } from '../handlers/project-init'; |
11 |
| -(isIntegrationTest ? describe : describe.skip)( |
12 |
| - 'Sequence: PRD -> UXSD -> UXDD -> UXSS -> DBSchemas -> BackendCodeGenerator', |
13 |
| - () => { |
14 |
| - // Generate a unique folder with a timestamp |
15 |
| - const timestamp = new Date().toISOString().replace(/[:.]/g, '-'); |
16 |
| - const logFolderPath = `./logs/backend_code_generator-${timestamp}`; |
17 |
| - fs.mkdirSync(logFolderPath, { recursive: true }); |
| 1 | +// import { BuildSequence } from '../types'; |
| 2 | +// import * as fs from 'fs'; |
| 3 | +// import { executeBuildSequence } from './utils'; |
| 4 | +// import { isIntegrationTest } from 'src/common/utils'; |
| 5 | +// import { PRDHandler } from '../handlers/product-manager/product-requirements-document/prd'; |
| 6 | +// import { UXSMDHandler } from '../handlers/ux/sitemap-document'; |
| 7 | +// import { DBRequirementHandler } from '../handlers/database/requirements-document'; |
| 8 | +// import { DBSchemaHandler } from '../handlers/database/schemas/schemas'; |
| 9 | +// import { BackendCodeHandler } from '../handlers/backend/code-generate'; |
| 10 | +// import { ProjectInitHandler } from '../handlers/project-init'; |
| 11 | +// (isIntegrationTest ? describe : describe.skip)( |
| 12 | +// 'Sequence: PRD -> UXSD -> UXDD -> UXSS -> DBSchemas -> BackendCodeGenerator', |
| 13 | +// () => { |
| 14 | +// // Generate a unique folder with a timestamp |
| 15 | +// const timestamp = new Date().toISOString().replace(/[:.]/g, '-'); |
| 16 | +// const logFolderPath = `./logs/backend_code_generator-${timestamp}`; |
| 17 | +// fs.mkdirSync(logFolderPath, { recursive: true }); |
18 | 18 |
|
19 |
| - (isIntegrationTest ? it : it.skip)( |
20 |
| - 'should execute the backend code generation sequence and log results to individual files', |
21 |
| - async () => { |
22 |
| - // Define the build sequence up to Backend Code Generator |
23 |
| - const sequence: BuildSequence = { |
24 |
| - id: 'test-backend-sequence', |
25 |
| - version: '1.0.0', |
26 |
| - name: 'Spotify-like Music Web', |
27 |
| - description: 'Users can play music', |
28 |
| - databaseType: 'SQLite', |
29 |
| - nodes: [ |
30 |
| - { |
31 |
| - handler: ProjectInitHandler, |
32 |
| - name: 'Project Folders Setup', |
33 |
| - }, |
34 |
| - { |
35 |
| - handler: PRDHandler, |
36 |
| - name: 'PRD Generation Node', |
37 |
| - }, |
| 19 | +// (isIntegrationTest ? it : it.skip)( |
| 20 | +// 'should execute the backend code generation sequence and log results to individual files', |
| 21 | +// async () => { |
| 22 | +// // Define the build sequence up to Backend Code Generator |
| 23 | +// const sequence: BuildSequence = { |
| 24 | +// id: 'test-backend-sequence', |
| 25 | +// version: '1.0.0', |
| 26 | +// name: 'Spotify-like Music Web', |
| 27 | +// description: 'Users can play music', |
| 28 | +// databaseType: 'SQLite', |
| 29 | +// nodes: [ |
| 30 | +// { |
| 31 | +// handler: ProjectInitHandler, |
| 32 | +// name: 'Project Folders Setup', |
| 33 | +// }, |
| 34 | +// { |
| 35 | +// handler: PRDHandler, |
| 36 | +// name: 'PRD Generation Node', |
| 37 | +// }, |
38 | 38 |
|
39 |
| - { |
40 |
| - handler: UXSMDHandler, |
41 |
| - name: 'UX Sitemap Document Node', |
42 |
| - // requires: ['op:PRD'], |
43 |
| - }, |
| 39 | +// { |
| 40 | +// handler: UXSMDHandler, |
| 41 | +// name: 'UX Sitemap Document Node', |
| 42 | +// // requires: ['op:PRD'], |
| 43 | +// }, |
44 | 44 |
|
45 |
| - { |
46 |
| - handler: UXSMDHandler, |
47 |
| - name: 'UX Data Map Document Node', |
48 |
| - // requires: ['op:UX:SMD'], |
49 |
| - }, |
| 45 | +// { |
| 46 | +// handler: UXSMDHandler, |
| 47 | +// name: 'UX Data Map Document Node', |
| 48 | +// // requires: ['op:UX:SMD'], |
| 49 | +// }, |
50 | 50 |
|
51 |
| - { |
52 |
| - handler: DBRequirementHandler, |
53 |
| - name: 'Database Requirements Node', |
54 |
| - // requires: ['op:UX:DATAMAP:DOC'], |
55 |
| - }, |
| 51 | +// { |
| 52 | +// handler: DBRequirementHandler, |
| 53 | +// name: 'Database Requirements Node', |
| 54 | +// // requires: ['op:UX:DATAMAP:DOC'], |
| 55 | +// }, |
56 | 56 |
|
57 |
| - { |
58 |
| - handler: DBSchemaHandler, |
59 |
| - name: 'Database Schemas Node', |
60 |
| - // requires: ['op:DATABASE_REQ'], |
61 |
| - }, |
| 57 | +// { |
| 58 | +// handler: DBSchemaHandler, |
| 59 | +// name: 'Database Schemas Node', |
| 60 | +// // requires: ['op:DATABASE_REQ'], |
| 61 | +// }, |
62 | 62 |
|
63 |
| - { |
64 |
| - handler: BackendCodeHandler, |
65 |
| - name: 'Backend Code Generator Node', |
66 |
| - // requires: ['op:DATABASE:SCHEMAS', 'op:UX:DATAMAP:DOC'], |
67 |
| - }, |
68 |
| - ], |
69 |
| - }; |
| 63 | +// { |
| 64 | +// handler: BackendCodeHandler, |
| 65 | +// name: 'Backend Code Generator Node', |
| 66 | +// // requires: ['op:DATABASE:SCHEMAS', 'op:UX:DATAMAP:DOC'], |
| 67 | +// }, |
| 68 | +// ], |
| 69 | +// }; |
70 | 70 |
|
71 |
| - // Initialize the BuilderContext with the defined sequence and environment |
72 |
| - executeBuildSequence('backend code geneerate', sequence); |
73 |
| - }, |
74 |
| - 600000, |
75 |
| - ); // Timeout set to 10 minutes |
76 |
| - }, |
77 |
| -); |
| 71 | +// // Initialize the BuilderContext with the defined sequence and environment |
| 72 | +// executeBuildSequence('backend code geneerate', sequence); |
| 73 | +// }, |
| 74 | +// 600000, |
| 75 | +// ); // Timeout set to 10 minutes |
| 76 | +// }, |
| 77 | +// ); |
0 commit comments