@testforgejs/vue-test-plugin-pinia 1.0.0-beta.4 → 1.0.0-beta.5

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/dist/index.cjs CHANGED
@@ -70,7 +70,8 @@ var piniaPlugin = {
70
70
  // Automatically sets the active Pinia instance for current test context.
71
71
  afterCreate(instance) {
72
72
  (0, import_pinia.setActivePinia)(instance);
73
- }
73
+ },
74
+ supportsInstanceReferences: true
74
75
  }),
75
76
  getDefaultOptions: defaultOptions
76
77
  };
package/dist/index.d.cts CHANGED
@@ -49,12 +49,10 @@ interface VueTestPiniaOptions extends TestingOptions, PluginControlOptions<Testi
49
49
  }
50
50
 
51
51
  /**
52
- * Extending TestForge kernel types for Pinia integration.
52
+ * TestForge core type augmentation for Pinia integration.
53
53
  *
54
- * This module registers the Pinia configuration in the global plugin map,
55
- * which ensures strict typing of the `pinia` property within `plugins`.
56
- *
57
- * @module PiniaAugmentation
54
+ * Registers the public plugin configuration and runtime instance types
55
+ * used by TestForge's managed plugin APIs.
58
56
  */
59
57
  declare module "@testforgejs/vue-test-core" {
60
58
  /**
@@ -67,6 +65,15 @@ declare module "@testforgejs/vue-test-core" {
67
65
  */
68
66
  [PINIA_PLUGIN_NAME]: VueTestPiniaOptions;
69
67
  }
68
+ /**
69
+ * Registers the testing Pinia runtime instance type.
70
+ */
71
+ interface PluginInstanceMap {
72
+ /**
73
+ * Testing Pinia instance created by the managed `pinia` plugin.
74
+ */
75
+ [PINIA_PLUGIN_NAME]: TestingPinia;
76
+ }
70
77
  }
71
78
 
72
79
  /**
package/dist/index.d.ts CHANGED
@@ -49,12 +49,10 @@ interface VueTestPiniaOptions extends TestingOptions, PluginControlOptions<Testi
49
49
  }
50
50
 
51
51
  /**
52
- * Extending TestForge kernel types for Pinia integration.
52
+ * TestForge core type augmentation for Pinia integration.
53
53
  *
54
- * This module registers the Pinia configuration in the global plugin map,
55
- * which ensures strict typing of the `pinia` property within `plugins`.
56
- *
57
- * @module PiniaAugmentation
54
+ * Registers the public plugin configuration and runtime instance types
55
+ * used by TestForge's managed plugin APIs.
58
56
  */
59
57
  declare module "@testforgejs/vue-test-core" {
60
58
  /**
@@ -67,6 +65,15 @@ declare module "@testforgejs/vue-test-core" {
67
65
  */
68
66
  [PINIA_PLUGIN_NAME]: VueTestPiniaOptions;
69
67
  }
68
+ /**
69
+ * Registers the testing Pinia runtime instance type.
70
+ */
71
+ interface PluginInstanceMap {
72
+ /**
73
+ * Testing Pinia instance created by the managed `pinia` plugin.
74
+ */
75
+ [PINIA_PLUGIN_NAME]: TestingPinia;
76
+ }
70
77
  }
71
78
 
72
79
  /**
package/dist/index.js CHANGED
@@ -42,7 +42,8 @@ var piniaPlugin = {
42
42
  // Automatically sets the active Pinia instance for current test context.
43
43
  afterCreate(instance) {
44
44
  setActivePinia(instance);
45
- }
45
+ },
46
+ supportsInstanceReferences: true
46
47
  }),
47
48
  getDefaultOptions: defaultOptions
48
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testforgejs/vue-test-plugin-pinia",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
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 || ^4.0.0",
47
47
  "@pinia/testing": "^1.0.0 || ^2.0.0",
48
- "@testforgejs/vue-test-core": "1.0.0-beta.3"
48
+ "@testforgejs/vue-test-core": "1.0.0-beta.4"
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.3"
53
+ "@testforgejs/vue-test-core": "1.0.0-beta.4"
54
54
  },
55
55
  "testforge": {
56
56
  "plugin": {