@@ -2,7 +2,36 @@ import { getFileNameWithoutExtension, joinPath } from "../../src/helpers/file-sy
2
2
import { getTestConfigurationFilePaths } from "./configuration-helper.js" ;
3
3
import { OrganizeTestParameters } from "./organize-test-parameters.js" ;
4
4
5
- // #region Exported Functions (1)
5
+ // #region Exported Functions (2)
6
+
7
+ export function getOrganizeSpecialCaseTestParameters ( )
8
+ {
9
+ const specialTestCaseOutputDirectoryPath = "./test/organize-files/special-cases" ;
10
+ const specialTestCase1tOutput = `${ specialTestCaseOutputDirectoryPath } /special-test-case-1` ;
11
+
12
+ const specialTestCaseInputDirectoryPath = './test/organize-files/special-cases' ;
13
+ const specialTestCase1Input = `${ specialTestCaseInputDirectoryPath } /special-test-case-1/special-test-case-1.ts` ;
14
+
15
+ const tests = [
16
+ { name : "Special Test Case 1" , inputFilePath : specialTestCase1Input , outputDirectoryPath : specialTestCase1tOutput } ,
17
+ ] ;
18
+ const memberOrganizeParameters : OrganizeTestParameters [ ] = [ ] ;
19
+
20
+ for ( const test of tests )
21
+ {
22
+ for ( const configurationFilePath of getTestConfigurationFilePaths ( ) )
23
+ {
24
+ const description = `organize ${ test . name } : ${ getFileNameWithoutExtension ( configurationFilePath ) . replaceAll ( "-" , " " ) } ` ;
25
+ const inputFilePath = test . inputFilePath ;
26
+ const outputDirectoryPath = test . outputDirectoryPath ;
27
+ const outputFilePath = joinPath ( outputDirectoryPath , getFileNameWithoutExtension ( configurationFilePath ) + ".ts" ) ;
28
+
29
+ memberOrganizeParameters . push ( new OrganizeTestParameters ( description , configurationFilePath , inputFilePath , outputFilePath ) ) ;
30
+ }
31
+ }
32
+
33
+ return memberOrganizeParameters ;
34
+ }
6
35
7
36
export function getOrganizeTestParameters ( )
8
37
{
@@ -13,7 +42,7 @@ export function getOrganizeTestParameters()
13
42
const testOutputModuleDirectoryPath = `${ testOutputDirectoryPath } /module` ;
14
43
const testOutputTypeDirectoryPath = `${ testOutputDirectoryPath } /type` ;
15
44
const testOutputVariableDirectoryPath = `${ testOutputDirectoryPath } /variable` ;
16
-
45
+
17
46
const testInputDirectoryPath = './test/organize-files/ts-files' ;
18
47
const testInputClassFilePath = `${ testInputDirectoryPath } /class/test-class.ts` ;
19
48
const testInputFunctionFilePath = `${ testInputDirectoryPath } /function/test-function.ts` ;
0 commit comments