')
- })
- })
-})
diff --git a/test/fixtures/basic/compodium/components/BasicComponentExample.vue b/test/fixtures/basic/compodium/examples/BasicComponentExample.vue
similarity index 100%
rename from test/fixtures/basic/compodium/components/BasicComponentExample.vue
rename to test/fixtures/basic/compodium/examples/BasicComponentExample.vue
diff --git a/test/fixtures/basic/compodium/components/BasicComponentExampleWithSuffix.vue b/test/fixtures/basic/compodium/examples/BasicComponentExampleWithSuffix.vue
similarity index 100%
rename from test/fixtures/basic/compodium/components/BasicComponentExampleWithSuffix.vue
rename to test/fixtures/basic/compodium/examples/BasicComponentExampleWithSuffix.vue
diff --git a/test/fixtures/custom-preview/app.vue b/test/fixtures/basic/components/ExcludedComponent.vue
similarity index 54%
rename from test/fixtures/custom-preview/app.vue
rename to test/fixtures/basic/components/ExcludedComponent.vue
index 8371b274..a154d08e 100644
--- a/test/fixtures/custom-preview/app.vue
+++ b/test/fixtures/basic/components/ExcludedComponent.vue
@@ -1,3 +1,3 @@
- basic
+
diff --git a/test/fixtures/basic/nuxt.config.ts b/test/fixtures/basic/nuxt.config.ts
index 0e4403a8..34fd721f 100644
--- a/test/fixtures/basic/nuxt.config.ts
+++ b/test/fixtures/basic/nuxt.config.ts
@@ -1,3 +1,9 @@
export default defineNuxtConfig({
- modules: ['../../../src/module']
+ modules: ['../../../src/module'],
+
+ compodium: {
+ exclude: [
+ 'ExcludedComponent'
+ ]
+ }
})
diff --git a/test/fixtures/basic/ui/Button.vue b/test/fixtures/basic/ui/Button.vue
new file mode 100644
index 00000000..a154d08e
--- /dev/null
+++ b/test/fixtures/basic/ui/Button.vue
@@ -0,0 +1,3 @@
+
+
+
diff --git a/test/fixtures/custom-compodium-dir/app.vue b/test/fixtures/custom-compodium-dir/app.vue
new file mode 100644
index 00000000..05cbdc5c
--- /dev/null
+++ b/test/fixtures/custom-compodium-dir/app.vue
@@ -0,0 +1,3 @@
+
+ custom dir
+
diff --git a/test/fixtures/custom-preview/components/TestBasic.vue b/test/fixtures/custom-compodium-dir/components/BasicComponent.vue
similarity index 100%
rename from test/fixtures/custom-preview/components/TestBasic.vue
rename to test/fixtures/custom-compodium-dir/components/BasicComponent.vue
diff --git a/test/fixtures/custom-preview/nuxt.config.ts b/test/fixtures/custom-compodium-dir/nuxt.config.ts
similarity index 71%
rename from test/fixtures/custom-preview/nuxt.config.ts
rename to test/fixtures/custom-compodium-dir/nuxt.config.ts
index 3369c959..c957d2ee 100644
--- a/test/fixtures/custom-preview/nuxt.config.ts
+++ b/test/fixtures/custom-compodium-dir/nuxt.config.ts
@@ -1,6 +1,6 @@
export default defineNuxtConfig({
modules: ['../../../src/module'],
compodium: {
- rootComponent: 'custom-root.vue'
+ dir: 'play'
}
})
diff --git a/test/fixtures/custom-preview/package.json b/test/fixtures/custom-compodium-dir/package.json
similarity index 100%
rename from test/fixtures/custom-preview/package.json
rename to test/fixtures/custom-compodium-dir/package.json
diff --git a/test/fixtures/custom-compodium-dir/play/examples/BasicComponentExample.vue b/test/fixtures/custom-compodium-dir/play/examples/BasicComponentExample.vue
new file mode 100644
index 00000000..a154d08e
--- /dev/null
+++ b/test/fixtures/custom-compodium-dir/play/examples/BasicComponentExample.vue
@@ -0,0 +1,3 @@
+
+
+
diff --git a/test/fixtures/custom-preview/compodium/preview.vue b/test/fixtures/custom-compodium-dir/play/preview.vue
similarity index 100%
rename from test/fixtures/custom-preview/compodium/preview.vue
rename to test/fixtures/custom-compodium-dir/play/preview.vue
diff --git a/test/fixtures/custom-component-dirs/app.vue b/test/fixtures/custom-component-dirs/app.vue
new file mode 100644
index 00000000..f6b91380
--- /dev/null
+++ b/test/fixtures/custom-component-dirs/app.vue
@@ -0,0 +1,3 @@
+
+ custom collection
+
diff --git a/test/fixtures/custom-component-dirs/compodium/examples/BasicComponentExample.vue b/test/fixtures/custom-component-dirs/compodium/examples/BasicComponentExample.vue
new file mode 100644
index 00000000..e69de29b
diff --git a/test/fixtures/custom-component-dirs/components/BasicComponent.vue b/test/fixtures/custom-component-dirs/components/BasicComponent.vue
new file mode 100644
index 00000000..aa064cea
--- /dev/null
+++ b/test/fixtures/custom-component-dirs/components/BasicComponent.vue
@@ -0,0 +1,7 @@
+
+
+
+ {{ foo }}
+
diff --git a/test/fixtures/custom-component-dirs/my-ui/Button.vue b/test/fixtures/custom-component-dirs/my-ui/Button.vue
new file mode 100644
index 00000000..a154d08e
--- /dev/null
+++ b/test/fixtures/custom-component-dirs/my-ui/Button.vue
@@ -0,0 +1,3 @@
+
+
+
diff --git a/test/fixtures/custom-component-dirs/nuxt.config.ts b/test/fixtures/custom-component-dirs/nuxt.config.ts
new file mode 100644
index 00000000..499ed6f9
--- /dev/null
+++ b/test/fixtures/custom-component-dirs/nuxt.config.ts
@@ -0,0 +1,7 @@
+export default defineNuxtConfig({
+ modules: ['../../../src/module'],
+ components: [
+ { path: 'components/' },
+ { path: 'my-ui/', prefix: 'U' }
+ ]
+})
diff --git a/test/fixtures/custom-component-dirs/package.json b/test/fixtures/custom-component-dirs/package.json
new file mode 100644
index 00000000..decd4334
--- /dev/null
+++ b/test/fixtures/custom-component-dirs/package.json
@@ -0,0 +1,5 @@
+{
+ "private": true,
+ "name": "basic",
+ "type": "module"
+}