Skip to content

Commit bd156c0

Browse files
fix(core): Moving mock configuration files to test folder parallel to /src (#626)
* Moving mock configuration files to test folder parallel to /src * Prettier
1 parent d0ed40a commit bd156c0

File tree

5 files changed

+3
-22
lines changed

5 files changed

+3
-22
lines changed

src/deployments/cdk/test/apps/unsupported-changes.mocks.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,7 @@ export function createPhaseInput(): Omit<PhaseInput, 'accountStacks'> {
111111
},
112112
];
113113

114-
const configFilePath = path.join(
115-
__dirname,
116-
'..',
117-
'..',
118-
'..',
119-
'..',
120-
'..',
121-
'reference-artifacts',
122-
'config.example.json',
123-
);
114+
const configFilePath = path.join(__dirname, '..', '..', '..', '..', '..', 'test', 'config.example.json');
124115

125116
const content = fs.readFileSync(configFilePath);
126117
const config = AcceleratorConfig.fromString(content.toString());

src/lib/common-config/test/config/compare/validate.spec.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,7 @@ import { compareConfiguration, getAccountNames } from '../../../src/compare/conf
66
import { AcceleratorConfig } from '../../..';
77

88
// Working directory is `common-lambda` so the config file is one directory up
9-
const configFilePath = path.join(
10-
__dirname,
11-
'..',
12-
'..',
13-
'..',
14-
'..',
15-
'..',
16-
'..',
17-
'reference-artifacts',
18-
'config.example.json',
19-
);
9+
const configFilePath = path.join(__dirname, '..', '..', '..', '..', '..', '..', 'test', 'config.example.json');
2010
const content = fs.readFileSync(configFilePath);
2111

2212
// Keep context for all the tests

src/lib/common-config/test/config/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as path from 'path';
33
import { AcceleratorConfig } from '../../';
44
import { LandingZoneStack } from '../../../common/src/landing-zone';
55

6-
const configFilePath = path.join(__dirname, '..', '..', '..', '..', '..', 'reference-artifacts', 'config.ALZ.json');
6+
const configFilePath = path.join(__dirname, '..', '..', '..', '..', '..', 'test', 'config.ALZ.json');
77

88
const landingZoneFilePath = path.join(
99
__dirname,

0 commit comments

Comments
 (0)