@powerlines/plugin-automd 0.1.549 → 0.1.551
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.test.cjs +29 -0
- package/dist/index.test.d.cts +1 -0
- package/dist/index.test.d.mts +1 -0
- package/dist/index.test.mjs +31 -0
- package/dist/index.test.mjs.map +1 -0
- package/package.json +24 -10
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_index = require('./index.cjs');
|
|
2
|
+
let vitest = require("vitest");
|
|
3
|
+
|
|
4
|
+
//#region src/index.test.ts
|
|
5
|
+
(0, vitest.describe)("automd plugin", () => {
|
|
6
|
+
(0, vitest.it)("plugin is a function", () => {
|
|
7
|
+
(0, vitest.expect)(typeof require_index.default).toBe("function");
|
|
8
|
+
});
|
|
9
|
+
(0, vitest.it)("plugin() returns an object", () => {
|
|
10
|
+
const result = require_index.default();
|
|
11
|
+
(0, vitest.expect)(typeof result).toBe("object");
|
|
12
|
+
(0, vitest.expect)(result).not.toBeNull();
|
|
13
|
+
});
|
|
14
|
+
(0, vitest.it)("plugin() returns an object with a name property", () => {
|
|
15
|
+
const result = require_index.default();
|
|
16
|
+
(0, vitest.expect)(result).toHaveProperty("name");
|
|
17
|
+
(0, vitest.expect)(typeof result.name).toBe("string");
|
|
18
|
+
});
|
|
19
|
+
(0, vitest.it)("plugin() accepts an empty options object", () => {
|
|
20
|
+
(0, vitest.expect)(() => require_index.default({})).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
(0, vitest.it)("plugin() returns the same name for all calls", () => {
|
|
23
|
+
const r1 = require_index.default();
|
|
24
|
+
const r2 = require_index.default({});
|
|
25
|
+
(0, vitest.expect)(r1.name).toBe(r2.name);
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import plugin from "./index.mjs";
|
|
2
|
+
import { describe, expect, it } from "vitest";
|
|
3
|
+
|
|
4
|
+
//#region src/index.test.ts
|
|
5
|
+
describe("automd plugin", () => {
|
|
6
|
+
it("plugin is a function", () => {
|
|
7
|
+
expect(typeof plugin).toBe("function");
|
|
8
|
+
});
|
|
9
|
+
it("plugin() returns an object", () => {
|
|
10
|
+
const result = plugin();
|
|
11
|
+
expect(typeof result).toBe("object");
|
|
12
|
+
expect(result).not.toBeNull();
|
|
13
|
+
});
|
|
14
|
+
it("plugin() returns an object with a name property", () => {
|
|
15
|
+
const result = plugin();
|
|
16
|
+
expect(result).toHaveProperty("name");
|
|
17
|
+
expect(typeof result.name).toBe("string");
|
|
18
|
+
});
|
|
19
|
+
it("plugin() accepts an empty options object", () => {
|
|
20
|
+
expect(() => plugin({})).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
it("plugin() returns the same name for all calls", () => {
|
|
23
|
+
const r1 = plugin();
|
|
24
|
+
const r2 = plugin({});
|
|
25
|
+
expect(r1.name).toBe(r2.name);
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { };
|
|
31
|
+
//# sourceMappingURL=index.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.test.mjs","names":[],"sources":["../src/index.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport { plugin } from \"./index\";\n\ndescribe(\"automd plugin\", () => {\n it(\"plugin is a function\", () => {\n expect(typeof plugin).toBe(\"function\");\n });\n\n it(\"plugin() returns an object\", () => {\n const result = plugin();\n expect(typeof result).toBe(\"object\");\n expect(result).not.toBeNull();\n });\n\n it(\"plugin() returns an object with a name property\", () => {\n const result = plugin();\n expect(result).toHaveProperty(\"name\");\n expect(typeof result.name).toBe(\"string\");\n });\n\n it(\"plugin() accepts an empty options object\", () => {\n expect(() => plugin({})).not.toThrow();\n });\n\n it(\"plugin() returns the same name for all calls\", () => {\n const r1 = plugin();\n const r2 = plugin({});\n expect(r1.name).toBe(r2.name);\n });\n});\n"],"mappings":";;;;AAGA,SAAS,uBAAuB;CAC9B,GAAG,8BAA8B;EAC/B,OAAO,OAAO,MAAM,EAAE,KAAK,UAAU;CACvC,CAAC;CAED,GAAG,oCAAoC;EACrC,MAAM,SAAS,OAAO;EACtB,OAAO,OAAO,MAAM,EAAE,KAAK,QAAQ;EACnC,OAAO,MAAM,EAAE,IAAI,SAAS;CAC9B,CAAC;CAED,GAAG,yDAAyD;EAC1D,MAAM,SAAS,OAAO;EACtB,OAAO,MAAM,EAAE,eAAe,MAAM;EACpC,OAAO,OAAO,OAAO,IAAI,EAAE,KAAK,QAAQ;CAC1C,CAAC;CAED,GAAG,kDAAkD;EACnD,aAAa,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,QAAQ;CACvC,CAAC;CAED,GAAG,sDAAsD;EACvD,MAAM,KAAK,OAAO;EAClB,MAAM,KAAK,OAAO,CAAC,CAAC;EACpB,OAAO,GAAG,IAAI,EAAE,KAAK,GAAG,IAAI;CAC9B,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-automd",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.551",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Powerlines plugin to maintain a project's markdown files using AutoMD generators.",
|
|
6
6
|
"keywords": ["automd", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -54,6 +54,20 @@
|
|
|
54
54
|
"default": "./dist/index.mjs"
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
+
"./index.test": {
|
|
58
|
+
"require": {
|
|
59
|
+
"types": "./dist/index.test.d.cts",
|
|
60
|
+
"default": "./dist/index.test.cjs"
|
|
61
|
+
},
|
|
62
|
+
"import": {
|
|
63
|
+
"types": "./dist/index.test.d.mts",
|
|
64
|
+
"default": "./dist/index.test.mjs"
|
|
65
|
+
},
|
|
66
|
+
"default": {
|
|
67
|
+
"types": "./dist/index.test.d.mts",
|
|
68
|
+
"default": "./dist/index.test.mjs"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
57
71
|
"./package.json": "./package.json",
|
|
58
72
|
"./types": {
|
|
59
73
|
"require": {
|
|
@@ -104,22 +118,22 @@
|
|
|
104
118
|
"typings": "dist/index.d.mts",
|
|
105
119
|
"files": ["dist"],
|
|
106
120
|
"dependencies": {
|
|
107
|
-
"@powerlines/core": "^0.48.
|
|
108
|
-
"@stryke/convert": "^0.7.
|
|
109
|
-
"@stryke/fs": "^0.33.
|
|
110
|
-
"@stryke/path": "^0.29.
|
|
111
|
-
"@stryke/type-checks": "^0.6.
|
|
112
|
-
"@stryke/types": "^0.12.
|
|
121
|
+
"@powerlines/core": "^0.48.29",
|
|
122
|
+
"@stryke/convert": "^0.7.11",
|
|
123
|
+
"@stryke/fs": "^0.33.80",
|
|
124
|
+
"@stryke/path": "^0.29.7",
|
|
125
|
+
"@stryke/type-checks": "^0.6.13",
|
|
126
|
+
"@stryke/types": "^0.12.8",
|
|
113
127
|
"c12": "^3.3.4",
|
|
114
128
|
"defu": "^6.1.7",
|
|
115
129
|
"markdown-toc": "^1.2.0",
|
|
116
|
-
"powerlines": "^0.47.
|
|
130
|
+
"powerlines": "^0.47.90"
|
|
117
131
|
},
|
|
118
132
|
"devDependencies": {
|
|
119
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
133
|
+
"@powerlines/plugin-plugin": "^0.12.502",
|
|
120
134
|
"@types/node": "^25.9.1",
|
|
121
135
|
"automd": "^0.4.3"
|
|
122
136
|
},
|
|
123
137
|
"publishConfig": { "access": "public" },
|
|
124
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "a673a3bb6463e3e010ae5edbb63891961751b4d5"
|
|
125
139
|
}
|