@testforgejs/vue-test-plugin-primevue 1.0.0-beta.0 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ yarn add -D @testforgejs/vue-test-plugin-primevue@beta
|
|
|
30
30
|
|
|
31
31
|
Register `primeVuePlugin` in the TestForge plugin manifest.
|
|
32
32
|
|
|
33
|
-
```
|
|
33
|
+
```typescript
|
|
34
34
|
import { createTestFramework } from "@testforgejs/vue-test-core";
|
|
35
35
|
import { primeVuePlugin } from "@testforgejs/vue-test-plugin-primevue";
|
|
36
36
|
|
|
@@ -43,6 +43,13 @@ const framework = createTestFramework({
|
|
|
43
43
|
enabled: true,
|
|
44
44
|
},
|
|
45
45
|
],
|
|
46
|
+
defaults: {
|
|
47
|
+
primevue: () => ({
|
|
48
|
+
theme: {
|
|
49
|
+
preset: Aura,
|
|
50
|
+
},
|
|
51
|
+
}),
|
|
52
|
+
},
|
|
46
53
|
},
|
|
47
54
|
},
|
|
48
55
|
});
|
|
@@ -52,6 +59,8 @@ const factory = framework.testComponentFactory(MyComponent);
|
|
|
52
59
|
const wrapper = factory();
|
|
53
60
|
```
|
|
54
61
|
|
|
62
|
+
`defaults.primevue` is an options factory. Each invocation produces a fresh PrimeVue options object for the current pipeline context.
|
|
63
|
+
|
|
55
64
|
The plugin provides PrimeVue integration for components mounted through TestForge.
|
|
56
65
|
|
|
57
66
|
## Supported versions
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testforgejs/vue-test-plugin-primevue",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Official TestForge plugin for PrimeVue integration in component tests",
|
|
6
6
|
"homepage": "https://github.com/testforgejs/testforge#readme",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"author": "Roman Levchenko",
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"primevue": "^3.0.0 || ^4.0.0",
|
|
45
|
-
"@testforgejs/vue-test-core": "1.0.0-beta.
|
|
45
|
+
"@testforgejs/vue-test-core": "1.0.0-beta.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"primevue": "^4.0.0",
|
|
49
|
-
"@testforgejs/vue-test-core": "1.0.0-beta.
|
|
49
|
+
"@testforgejs/vue-test-core": "1.0.0-beta.2"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsup",
|