feat: add feature plugin tests and validation for feature flags
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
export default {
|
||||
name: 'app',
|
||||
extends: ['../base'],
|
||||
features: { billing: false }, // overrides base — disabled leaf → DCE
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<svg><!-- app logo --></svg>
|
||||
|
After Width: | Height: | Size: 29 B |
@@ -0,0 +1 @@
|
||||
<template><header>app header</header></template>
|
||||
@@ -0,0 +1,7 @@
|
||||
export default {
|
||||
name: 'base',
|
||||
features: { billing: true, shared: 'base', nested: { on: true } },
|
||||
hooks: {
|
||||
'layers:resolved': () => {},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<svg><!-- base favicon --></svg>
|
||||
|
After Width: | Height: | Size: 33 B |
@@ -0,0 +1 @@
|
||||
<svg><!-- base logo --></svg>
|
||||
|
After Width: | Height: | Size: 30 B |
@@ -0,0 +1 @@
|
||||
<template><footer>base footer</footer></template>
|
||||
@@ -0,0 +1 @@
|
||||
<template><header>base header</header></template>
|
||||
@@ -0,0 +1 @@
|
||||
<template><div>billing</div></template>
|
||||
@@ -0,0 +1 @@
|
||||
<!-- deep/base --><template><span>base</span></template>
|
||||
@@ -0,0 +1 @@
|
||||
<!-- deep/mid --><template><span>mid</span></template>
|
||||
@@ -0,0 +1 @@
|
||||
<!-- deep/top --><template><span>top</span></template>
|
||||
Reference in New Issue
Block a user