@@ -223,10 +223,31 @@ function getSuiteStatus (suiteStats) {
223223}
224224
225225class CypressPlugin {
226- constructor ( ) {
227- this . _isInit = false
228- this . testEnvironmentMetadata = getTestEnvironmentMetadata ( TEST_FRAMEWORK_NAME )
226+ _isInit = false
227+ testEnvironmentMetadata = getTestEnvironmentMetadata ( TEST_FRAMEWORK_NAME )
228+
229+ finishedTestsByFile = { }
230+ testStatuses = { }
231+
232+ isTestsSkipped = false
233+ isSuitesSkippingEnabled = false
234+ isCodeCoverageEnabled = false
235+ isFlakyTestRetriesEnabled = false
236+ isEarlyFlakeDetectionEnabled = false
237+ isKnownTestsEnabled = false
238+ earlyFlakeDetectionNumRetries = 0
239+ testsToSkip = [ ]
240+ skippedTests = [ ]
241+ hasForcedToRunSuites = false
242+ hasUnskippableSuites = false
243+ unskippableSuites = [ ]
244+ knownTests = [ ]
245+ isTestManagementTestsEnabled = false
246+ testManagementAttemptToFixRetries = 0
247+ isImpactedTestsEnabled = false
248+ modifiedTests = [ ]
229249
250+ constructor ( ) {
230251 const {
231252 [ GIT_REPOSITORY_URL ] : repositoryUrl ,
232253 [ GIT_COMMIT_SHA ] : sha ,
@@ -265,26 +286,6 @@ class CypressPlugin {
265286 commitHeadSha,
266287 commitHeadMessage
267288 }
268- this . finishedTestsByFile = { }
269- this . testStatuses = { }
270-
271- this . isTestsSkipped = false
272- this . isSuitesSkippingEnabled = false
273- this . isCodeCoverageEnabled = false
274- this . isFlakyTestRetriesEnabled = false
275- this . isEarlyFlakeDetectionEnabled = false
276- this . isKnownTestsEnabled = false
277- this . earlyFlakeDetectionNumRetries = 0
278- this . testsToSkip = [ ]
279- this . skippedTests = [ ]
280- this . hasForcedToRunSuites = false
281- this . hasUnskippableSuites = false
282- this . unskippableSuites = [ ]
283- this . knownTests = [ ]
284- this . isTestManagementTestsEnabled = false
285- this . testManagementAttemptToFixRetries = 0
286- this . isImpactedTestsEnabled = false
287- this . modifiedTests = [ ]
288289 }
289290
290291 // Init function returns a promise that resolves with the Cypress configuration
0 commit comments