@testforgejs/vue-test-plugin-router 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 +2 -1
- package/dist/index.d.cts +14 -20
- package/dist/index.d.ts +14 -20
- package/dist/index.js +2 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -47,7 +47,8 @@ var ROUTER_PLUGIN_NAME = "router";
|
|
|
47
47
|
var routerPlugin = {
|
|
48
48
|
getName: () => ROUTER_PLUGIN_NAME,
|
|
49
49
|
getDefinition: () => ({
|
|
50
|
-
create: createRouterPlugin
|
|
50
|
+
create: createRouterPlugin,
|
|
51
|
+
supportsInstanceReferences: true
|
|
51
52
|
}),
|
|
52
53
|
getDefaultOptions: defaultOptions
|
|
53
54
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -35,36 +35,30 @@ declare const ROUTER_PLUGIN_NAME: "router";
|
|
|
35
35
|
type VueTestRouterOptions = RouterOptions & PluginControlOptions<Router>;
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* TestForge core type augmentation for Vue Router integration.
|
|
39
39
|
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* @module Augmentation
|
|
40
|
+
* Registers the public plugin configuration and runtime instance types
|
|
41
|
+
* used by TestForge's managed plugin APIs.
|
|
44
42
|
*/
|
|
45
43
|
declare module "@testforgejs/vue-test-core" {
|
|
46
44
|
/**
|
|
47
|
-
*
|
|
45
|
+
* Global map for TestForge plugin configuration options.
|
|
48
46
|
*/
|
|
49
47
|
interface PluginOptionsMap {
|
|
50
48
|
/**
|
|
51
|
-
* Configuration
|
|
52
|
-
* Accepts an object of type {@link VueTestRouterOptions} containing Vue router settings and control hooks.
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```ts
|
|
56
|
-
* factory({}, {
|
|
57
|
-
* plugins: {
|
|
58
|
-
* router: {
|
|
59
|
-
* history: createMemoryHistory(),
|
|
60
|
-
* routes: [...]
|
|
61
|
-
* }
|
|
62
|
-
* }
|
|
63
|
-
* });
|
|
64
|
-
* ```
|
|
49
|
+
* Configuration accepted by the managed `router` plugin.
|
|
65
50
|
*/
|
|
66
51
|
[ROUTER_PLUGIN_NAME]: VueTestRouterOptions;
|
|
67
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Global map for managed plugin runtime instances.
|
|
55
|
+
*/
|
|
56
|
+
interface PluginInstanceMap {
|
|
57
|
+
/**
|
|
58
|
+
* Runtime Vue Router instance created by the managed `router` plugin.
|
|
59
|
+
*/
|
|
60
|
+
[ROUTER_PLUGIN_NAME]: Router;
|
|
61
|
+
}
|
|
68
62
|
}
|
|
69
63
|
|
|
70
64
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -35,36 +35,30 @@ declare const ROUTER_PLUGIN_NAME: "router";
|
|
|
35
35
|
type VueTestRouterOptions = RouterOptions & PluginControlOptions<Router>;
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* TestForge core type augmentation for Vue Router integration.
|
|
39
39
|
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* @module Augmentation
|
|
40
|
+
* Registers the public plugin configuration and runtime instance types
|
|
41
|
+
* used by TestForge's managed plugin APIs.
|
|
44
42
|
*/
|
|
45
43
|
declare module "@testforgejs/vue-test-core" {
|
|
46
44
|
/**
|
|
47
|
-
*
|
|
45
|
+
* Global map for TestForge plugin configuration options.
|
|
48
46
|
*/
|
|
49
47
|
interface PluginOptionsMap {
|
|
50
48
|
/**
|
|
51
|
-
* Configuration
|
|
52
|
-
* Accepts an object of type {@link VueTestRouterOptions} containing Vue router settings and control hooks.
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```ts
|
|
56
|
-
* factory({}, {
|
|
57
|
-
* plugins: {
|
|
58
|
-
* router: {
|
|
59
|
-
* history: createMemoryHistory(),
|
|
60
|
-
* routes: [...]
|
|
61
|
-
* }
|
|
62
|
-
* }
|
|
63
|
-
* });
|
|
64
|
-
* ```
|
|
49
|
+
* Configuration accepted by the managed `router` plugin.
|
|
65
50
|
*/
|
|
66
51
|
[ROUTER_PLUGIN_NAME]: VueTestRouterOptions;
|
|
67
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Global map for managed plugin runtime instances.
|
|
55
|
+
*/
|
|
56
|
+
interface PluginInstanceMap {
|
|
57
|
+
/**
|
|
58
|
+
* Runtime Vue Router instance created by the managed `router` plugin.
|
|
59
|
+
*/
|
|
60
|
+
[ROUTER_PLUGIN_NAME]: Router;
|
|
61
|
+
}
|
|
68
62
|
}
|
|
69
63
|
|
|
70
64
|
/**
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,8 @@ var ROUTER_PLUGIN_NAME = "router";
|
|
|
19
19
|
var routerPlugin = {
|
|
20
20
|
getName: () => ROUTER_PLUGIN_NAME,
|
|
21
21
|
getDefinition: () => ({
|
|
22
|
-
create: createRouterPlugin
|
|
22
|
+
create: createRouterPlugin,
|
|
23
|
+
supportsInstanceReferences: true
|
|
23
24
|
}),
|
|
24
25
|
getDefaultOptions: defaultOptions
|
|
25
26
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testforgejs/vue-test-plugin-router",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Official TestForge plugin for Vue Router integration in component tests",
|
|
6
6
|
"homepage": "https://github.com/testforgejs/testforge#readme",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"author": "Roman Levchenko",
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"vue-router": "^4.0.0 || ^5.0.0",
|
|
48
|
-
"@testforgejs/vue-test-core": "1.0.0-beta.
|
|
48
|
+
"@testforgejs/vue-test-core": "1.0.0-beta.4"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"vue-router": "^5.0.0",
|
|
52
|
-
"@testforgejs/vue-test-core": "1.0.0-beta.
|
|
52
|
+
"@testforgejs/vue-test-core": "1.0.0-beta.4"
|
|
53
53
|
},
|
|
54
54
|
"testforge": {
|
|
55
55
|
"plugin": {
|