@@ -57,7 +57,7 @@ function validateConfiguration(rushProjectConfiguration: RushProjectConfiguratio
57
57
try {
58
58
rushProjectConfiguration . validatePhaseConfiguration (
59
59
Array . from ( rushProjectConfiguration . operationSettingsByOperationName . keys ( ) ) . map (
60
- ( phaseName ) => ( { name : phaseName } as IPhase )
60
+ ( phaseName ) => ( { name : phaseName } ) as IPhase
61
61
) ,
62
62
terminal
63
63
) ;
@@ -104,9 +104,8 @@ describe(RushProjectConfiguration.name, () => {
104
104
105
105
describe ( RushProjectConfiguration . prototype . getCacheDisabledReason . name , ( ) => {
106
106
it ( 'Indicates if the build cache is completely disabled' , async ( ) => {
107
- const config : RushProjectConfiguration | undefined = await loadProjectConfigurationAsync (
108
- 'test-project-a'
109
- ) ;
107
+ const config : RushProjectConfiguration | undefined =
108
+ await loadProjectConfigurationAsync ( 'test-project-a' ) ;
110
109
111
110
if ( ! config ) {
112
111
throw new Error ( 'Failed to load config' ) ;
@@ -117,9 +116,8 @@ describe(RushProjectConfiguration.name, () => {
117
116
} ) ;
118
117
119
118
it ( 'Indicates if the phase behavior is not defined' , async ( ) => {
120
- const config : RushProjectConfiguration | undefined = await loadProjectConfigurationAsync (
121
- 'test-project-c'
122
- ) ;
119
+ const config : RushProjectConfiguration | undefined =
120
+ await loadProjectConfigurationAsync ( 'test-project-c' ) ;
123
121
124
122
if ( ! config ) {
125
123
throw new Error ( 'Failed to load config' ) ;
@@ -130,9 +128,8 @@ describe(RushProjectConfiguration.name, () => {
130
128
} ) ;
131
129
132
130
it ( 'Indicates if the phase has disabled the cache' , async ( ) => {
133
- const config : RushProjectConfiguration | undefined = await loadProjectConfigurationAsync (
134
- 'test-project-c'
135
- ) ;
131
+ const config : RushProjectConfiguration | undefined =
132
+ await loadProjectConfigurationAsync ( 'test-project-c' ) ;
136
133
137
134
if ( ! config ) {
138
135
throw new Error ( 'Failed to load config' ) ;
@@ -143,9 +140,8 @@ describe(RushProjectConfiguration.name, () => {
143
140
} ) ;
144
141
145
142
it ( 'Indicates if tracked files are outputs of the phase' , async ( ) => {
146
- const config : RushProjectConfiguration | undefined = await loadProjectConfigurationAsync (
147
- 'test-project-c'
148
- ) ;
143
+ const config : RushProjectConfiguration | undefined =
144
+ await loadProjectConfigurationAsync ( 'test-project-c' ) ;
149
145
150
146
if ( ! config ) {
151
147
throw new Error ( 'Failed to load config' ) ;
@@ -159,9 +155,8 @@ describe(RushProjectConfiguration.name, () => {
159
155
} ) ;
160
156
161
157
it ( 'returns undefined if the config is safe' , async ( ) => {
162
- const config : RushProjectConfiguration | undefined = await loadProjectConfigurationAsync (
163
- 'test-project-c'
164
- ) ;
158
+ const config : RushProjectConfiguration | undefined =
159
+ await loadProjectConfigurationAsync ( 'test-project-c' ) ;
165
160
166
161
if ( ! config ) {
167
162
throw new Error ( 'Failed to load config' ) ;
0 commit comments