@testforgejs/vue-test-plugin-pinia 1.0.0-beta.0 → 1.0.0-beta.1
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 +8 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ yarn add -D @testforgejs/vue-test-plugin-pinia@beta
|
|
|
30
30
|
|
|
31
31
|
Register `piniaPlugin` in the TestForge plugin manifest.
|
|
32
32
|
|
|
33
|
-
```
|
|
33
|
+
```typescript
|
|
34
34
|
import { createTestFramework } from "@testforgejs/vue-test-core";
|
|
35
35
|
import { piniaPlugin } from "@testforgejs/vue-test-plugin-pinia";
|
|
36
36
|
|
|
@@ -43,11 +43,18 @@ const framework = createTestFramework({
|
|
|
43
43
|
enabled: true,
|
|
44
44
|
},
|
|
45
45
|
],
|
|
46
|
+
defaults: {
|
|
47
|
+
pinia: () => ({
|
|
48
|
+
initialState: {},
|
|
49
|
+
}),
|
|
50
|
+
},
|
|
46
51
|
},
|
|
47
52
|
},
|
|
48
53
|
});
|
|
49
54
|
```
|
|
50
55
|
|
|
56
|
+
`defaults.pinia` is an options factory. A new Pinia options object is created for each pipeline context.
|
|
57
|
+
|
|
51
58
|
The plugin provides a Pinia instance for components mounted through TestForge.
|
|
52
59
|
|
|
53
60
|
## Supported versions
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testforgejs/vue-test-plugin-pinia",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Official TestForge plugin for Pinia integration in component tests",
|
|
6
6
|
"homepage": "https://github.com/testforgejs/testforge#readme",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"pinia": ">=3.0.0 <5.0.0",
|
|
47
47
|
"@pinia/testing": ">=1.0.0 <3.0.0",
|
|
48
|
-
"@testforgejs/vue-test-core": "1.0.0-beta.
|
|
48
|
+
"@testforgejs/vue-test-core": "1.0.0-beta.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"pinia": "^4.0.0",
|
|
52
52
|
"@pinia/testing": "^2.0.0",
|
|
53
|
-
"@testforgejs/vue-test-core": "1.0.0-beta.
|
|
53
|
+
"@testforgejs/vue-test-core": "1.0.0-beta.1"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "tsup",
|