File tree Expand file tree Collapse file tree 4 files changed +3
-10
lines changed
packages/scaffold-config/src Expand file tree Collapse file tree 4 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -3430,12 +3430,6 @@ declare namespace Cypress {
3430
3430
* @example `cypress-ct-${string} for third parties. Any string is valid internally.
3431
3431
*/
3432
3432
type : string
3433
-
3434
- /**
3435
- * Only `library` is supported for third party definitions.
3436
- * `template` will be supported in the future.
3437
- */
3438
- category : 'library'
3439
3433
}
3440
3434
3441
3435
interface AngularDevServerProjectConfig {
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ const solid = {
67
67
const thirdPartyFrameworkDefinition = defineComponentFramework ( {
68
68
type : 'cypress-ct-third-party' ,
69
69
name : 'Third Party' ,
70
- category : 'library' ,
71
70
dependencies : ( bundler ) => [ solid ] ,
72
71
detectors : [ solid ] ,
73
72
supportedBundlers : [ 'vite' , 'webpack' ]
@@ -76,7 +75,6 @@ const thirdPartyFrameworkDefinition = defineComponentFramework({
76
75
const thirdPartyFrameworkDefinitionInvalidStrings = defineComponentFramework ( {
77
76
type : 'cypress-ct-third-party' ,
78
77
name : 'Third Party' ,
79
- category : 'template' , // $ExpectError
80
78
dependencies : ( bundler ) => [ ] ,
81
79
detectors : [ { } ] , // $ExpectError
82
80
supportedBundlers : [ 'metro' , 'webpack' ] // $ExpectError
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const thirdPartyDefinitionPrefixes = {
25
25
globalPrefix : 'cypress-ct-' ,
26
26
}
27
27
28
- export function isThirdPartyDefinition ( definition : Cypress . ComponentFrameworkDefinition | Cypress . ThirdPartyComponentFrameworkDefinition ) : definition is Cypress . ThirdPartyComponentFrameworkDefinition {
28
+ export function isThirdPartyDefinition ( definition : Cypress . ComponentFrameworkDefinition | Cypress . ThirdPartyComponentFrameworkDefinition ) : boolean {
29
29
return definition . type . startsWith ( thirdPartyDefinitionPrefixes . globalPrefix ) ||
30
30
thirdPartyDefinitionPrefixes . namespacedPrefixRe . test ( definition . type )
31
31
}
Original file line number Diff line number Diff line change @@ -304,12 +304,13 @@ export function resolveComponentFrameworkDefinition (definition: Cypress.Compone
304
304
if ( thirdParty ) {
305
305
return {
306
306
...definition ,
307
+ category : 'library' ,
307
308
dependencies,
308
309
configFramework : definition . type ,
309
310
supportStatus : 'community' ,
310
311
mountModule : ( ) => Promise . resolve ( definition . type ) ,
311
312
}
312
313
}
313
314
314
- return { ...definition , dependencies }
315
+ return { ...definition as Cypress . ComponentFrameworkDefinition , dependencies }
315
316
}
You can’t perform that action at this time.
0 commit comments