@as-pect/json-reporter 6.2.0 → 7.0.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/index.ts +5 -2
- package/lib/as-pect.json-reporter.amd.d.ts +19 -1
- package/lib/as-pect.json-reporter.amd.d.ts.map +1 -1
- package/lib/as-pect.json-reporter.amd.js +28 -30
- package/lib/as-pect.json-reporter.amd.js.map +1 -1
- package/lib/index.d.ts +19 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +31 -34
- package/lib/index.js.map +1 -1
- package/package.json +5 -7
- package/tsconfig.json +3 -4
package/index.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { WriteStream, createWriteStream } from "fs";
|
|
2
2
|
import { basename, extname, dirname, join } from "path";
|
|
3
|
-
import { TestNodeType, TestContext, IReporter, TestNode } from "@as-pect/core";
|
|
3
|
+
import { TestNodeType, TestContext, IReporter, TestNode, IWritable } from "@as-pect/core";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* This class reports all relevant test statistics to a JSON file located at
|
|
7
7
|
* `{testLocation}.spec.json`.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
export default class JSONReporter implements IReporter {
|
|
10
|
+
public stdout: IWritable | null = null;
|
|
11
|
+
public stderr: IWritable | null = null;
|
|
12
|
+
|
|
10
13
|
protected file: WriteStream | null = null;
|
|
11
14
|
|
|
12
15
|
private first: boolean = true;
|
|
@@ -1,2 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
declare module "index" {
|
|
3
|
+
import { WriteStream } from "fs";
|
|
4
|
+
import { TestContext, IReporter, TestNode } from "@as-pect/core";
|
|
5
|
+
/**
|
|
6
|
+
* This class reports all relevant test statistics to a JSON file located at
|
|
7
|
+
* `{testLocation}.spec.json`.
|
|
8
|
+
*/
|
|
9
|
+
export default class JSONReporter implements IReporter {
|
|
10
|
+
protected file: WriteStream | null;
|
|
11
|
+
private first;
|
|
12
|
+
onEnter(ctx: TestContext): void;
|
|
13
|
+
onExit(_ctx: TestContext, node: TestNode): void;
|
|
14
|
+
onFinish(_ctx: TestContext): void;
|
|
15
|
+
protected onGroupFinish(group: TestNode): void;
|
|
16
|
+
protected onTestFinish(group: TestNode, test: TestNode): void;
|
|
17
|
+
protected onTodo(group: TestNode, desc: string): void;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
2
20
|
//# sourceMappingURL=as-pect.json-reporter.amd.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"as-pect.json-reporter.amd.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"as-pect.json-reporter.amd.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;IAAA,OAAO,EAAE,WAAW,EAAqB,MAAM,IAAI,CAAC;IAEpD,OAAO,EAAgB,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;IAE/E;;;OAGG;IACH,MAAM,CAAC,OAAO,OAAO,YAAa,YAAW,SAAS;QACpD,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CAAQ;QAE1C,OAAO,CAAC,KAAK,CAAiB;QAEvB,OAAO,CAAC,KAAK,WAAW,GAAG,IAAI;QAU/B,MAAM,CAAC,MAAM,WAAW,EAAE,MAAM,QAAQ,GAAG,IAAI;QAM/C,QAAQ,CAAC,MAAM,WAAW,GAAG,IAAI;QAIxC,SAAS,CAAC,aAAa,CAAC,OAAO,QAAQ;QAOvC,SAAS,CAAC,YAAY,CAAC,OAAO,QAAQ,EAAE,MAAM,QAAQ,GAAG,IAAI;QAsB7D,SAAS,CAAC,MAAM,CAAC,OAAO,QAAQ,EAAE,MAAM,MAAM;KAiB/C"}
|
|
@@ -5,36 +5,33 @@ define("index", ["require", "exports", "fs", "path"], function (require, exports
|
|
|
5
5
|
* This class reports all relevant test statistics to a JSON file located at
|
|
6
6
|
* `{testLocation}.spec.json`.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var outPath = path_1.join(process.cwd(), dir, base + ".json");
|
|
18
|
-
this.file = fs_1.createWriteStream(outPath, "utf8");
|
|
8
|
+
class JSONReporter {
|
|
9
|
+
file = null;
|
|
10
|
+
first = true;
|
|
11
|
+
onEnter(ctx) {
|
|
12
|
+
const extension = (0, path_1.extname)(ctx.fileName);
|
|
13
|
+
const dir = (0, path_1.dirname)(ctx.fileName);
|
|
14
|
+
const base = (0, path_1.basename)(ctx.fileName, extension);
|
|
15
|
+
const outPath = (0, path_1.join)(process.cwd(), dir, base + ".json");
|
|
16
|
+
this.file = (0, fs_1.createWriteStream)(outPath, "utf8");
|
|
19
17
|
this.file.write("[");
|
|
20
18
|
this.first = true;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
if (node.type === 1 /* Group */) {
|
|
19
|
+
}
|
|
20
|
+
onExit(_ctx, node) {
|
|
21
|
+
if (node.type === 1 /* TestNodeType.Group */) {
|
|
24
22
|
this.onGroupFinish(node);
|
|
25
23
|
}
|
|
26
|
-
}
|
|
27
|
-
|
|
24
|
+
}
|
|
25
|
+
onFinish(_ctx) {
|
|
28
26
|
this.file.end();
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
var _this = this;
|
|
27
|
+
}
|
|
28
|
+
onGroupFinish(group) {
|
|
32
29
|
if (group.children.length === 0)
|
|
33
30
|
return;
|
|
34
|
-
group.groupTests.forEach(
|
|
35
|
-
group.groupTodos.forEach(
|
|
36
|
-
}
|
|
37
|
-
|
|
31
|
+
group.groupTests.forEach((test) => this.onTestFinish(group, test));
|
|
32
|
+
group.groupTodos.forEach((desc) => this.onTodo(group, desc));
|
|
33
|
+
}
|
|
34
|
+
onTestFinish(group, test) {
|
|
38
35
|
this.file.write((this.first ? "\n" : ",\n") +
|
|
39
36
|
JSON.stringify({
|
|
40
37
|
group: group.name,
|
|
@@ -46,14 +43,14 @@ define("index", ["require", "exports", "fs", "path"], function (require, exports
|
|
|
46
43
|
message: test.message,
|
|
47
44
|
actual: test.actual ? test.actual.stringify({ indent: 0 }) : null,
|
|
48
45
|
expected: test.expected
|
|
49
|
-
?
|
|
46
|
+
? `${test.negated ? "Not " : ""}${test.expected.stringify({
|
|
50
47
|
indent: 0,
|
|
51
|
-
})
|
|
48
|
+
})}`
|
|
52
49
|
: null,
|
|
53
50
|
}));
|
|
54
51
|
this.first = false;
|
|
55
|
-
}
|
|
56
|
-
|
|
52
|
+
}
|
|
53
|
+
onTodo(group, desc) {
|
|
57
54
|
this.file.write((this.first ? "\n" : ",\n") +
|
|
58
55
|
JSON.stringify({
|
|
59
56
|
group: group.name,
|
|
@@ -67,8 +64,9 @@ define("index", ["require", "exports", "fs", "path"], function (require, exports
|
|
|
67
64
|
expected: null,
|
|
68
65
|
}));
|
|
69
66
|
this.first = false;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.default = JSONReporter;
|
|
70
|
+
;
|
|
73
71
|
});
|
|
74
72
|
//# sourceMappingURL=as-pect.json-reporter.amd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"as-pect.json-reporter.amd.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;IAIA;;;OAGG;IACH,
|
|
1
|
+
{"version":3,"file":"as-pect.json-reporter.amd.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;IAIA;;;OAGG;IACH,MAAqB,YAAY;QACrB,IAAI,GAAuB,IAAI,CAAC;QAElC,KAAK,GAAY,IAAI,CAAC;QAEvB,OAAO,CAAC,GAAgB;YAC7B,MAAM,SAAS,GAAG,IAAA,cAAO,EAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACxC,MAAM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KAAK,CAAC;QACrB,CAAC;KACF;IAvED,+BAuEC;IAAA,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { WriteStream } from "fs";
|
|
3
|
+
import { TestContext, IReporter, TestNode, IWritable } from "@as-pect/core";
|
|
4
|
+
/**
|
|
5
|
+
* This class reports all relevant test statistics to a JSON file located at
|
|
6
|
+
* `{testLocation}.spec.json`.
|
|
7
|
+
*/
|
|
8
|
+
export default class JSONReporter implements IReporter {
|
|
9
|
+
stdout: IWritable | null;
|
|
10
|
+
stderr: IWritable | null;
|
|
11
|
+
protected file: WriteStream | null;
|
|
12
|
+
private first;
|
|
13
|
+
onEnter(ctx: TestContext): void;
|
|
14
|
+
onExit(_ctx: TestContext, node: TestNode): void;
|
|
15
|
+
onFinish(_ctx: TestContext): void;
|
|
16
|
+
protected onGroupFinish(group: TestNode): void;
|
|
17
|
+
protected onTestFinish(group: TestNode, test: TestNode): void;
|
|
18
|
+
protected onTodo(group: TestNode, desc: string): void;
|
|
19
|
+
}
|
|
2
20
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAqB,MAAM,IAAI,CAAC;AAEpD,OAAO,EAAgB,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1F;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,YAAW,SAAS;IAC7C,MAAM,EAAE,SAAS,GAAG,IAAI,CAAQ;IAChC,MAAM,EAAE,SAAS,GAAG,IAAI,CAAQ;IAEvC,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CAAQ;IAE1C,OAAO,CAAC,KAAK,CAAiB;IAEvB,OAAO,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI;IAU/B,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,GAAG,IAAI;IAM/C,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI;IAIxC,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,QAAQ;IAOvC,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,GAAG,IAAI;IAsB7D,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM;CAiB/C"}
|
package/lib/index.js
CHANGED
|
@@ -1,41 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var fs_1 = require("fs");
|
|
4
|
-
var path_1 = require("path");
|
|
1
|
+
import { createWriteStream } from "fs";
|
|
2
|
+
import { basename, extname, dirname, join } from "path";
|
|
5
3
|
/**
|
|
6
4
|
* This class reports all relevant test statistics to a JSON file located at
|
|
7
5
|
* `{testLocation}.spec.json`.
|
|
8
6
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
this.file =
|
|
7
|
+
export default class JSONReporter {
|
|
8
|
+
stdout = null;
|
|
9
|
+
stderr = null;
|
|
10
|
+
file = null;
|
|
11
|
+
first = true;
|
|
12
|
+
onEnter(ctx) {
|
|
13
|
+
const extension = extname(ctx.fileName);
|
|
14
|
+
const dir = dirname(ctx.fileName);
|
|
15
|
+
const base = basename(ctx.fileName, extension);
|
|
16
|
+
const outPath = join(process.cwd(), dir, base + ".json");
|
|
17
|
+
this.file = createWriteStream(outPath, "utf8");
|
|
20
18
|
this.file.write("[");
|
|
21
19
|
this.first = true;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
if (node.type === 1 /* Group */) {
|
|
20
|
+
}
|
|
21
|
+
onExit(_ctx, node) {
|
|
22
|
+
if (node.type === 1 /* TestNodeType.Group */) {
|
|
25
23
|
this.onGroupFinish(node);
|
|
26
24
|
}
|
|
27
|
-
}
|
|
28
|
-
|
|
25
|
+
}
|
|
26
|
+
onFinish(_ctx) {
|
|
29
27
|
this.file.end();
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
var _this = this;
|
|
28
|
+
}
|
|
29
|
+
onGroupFinish(group) {
|
|
33
30
|
if (group.children.length === 0)
|
|
34
31
|
return;
|
|
35
|
-
group.groupTests.forEach(
|
|
36
|
-
group.groupTodos.forEach(
|
|
37
|
-
}
|
|
38
|
-
|
|
32
|
+
group.groupTests.forEach((test) => this.onTestFinish(group, test));
|
|
33
|
+
group.groupTodos.forEach((desc) => this.onTodo(group, desc));
|
|
34
|
+
}
|
|
35
|
+
onTestFinish(group, test) {
|
|
39
36
|
this.file.write((this.first ? "\n" : ",\n") +
|
|
40
37
|
JSON.stringify({
|
|
41
38
|
group: group.name,
|
|
@@ -47,14 +44,14 @@ module.exports = /** @class */ (function () {
|
|
|
47
44
|
message: test.message,
|
|
48
45
|
actual: test.actual ? test.actual.stringify({ indent: 0 }) : null,
|
|
49
46
|
expected: test.expected
|
|
50
|
-
?
|
|
47
|
+
? `${test.negated ? "Not " : ""}${test.expected.stringify({
|
|
51
48
|
indent: 0,
|
|
52
|
-
})
|
|
49
|
+
})}`
|
|
53
50
|
: null,
|
|
54
51
|
}));
|
|
55
52
|
this.first = false;
|
|
56
|
-
}
|
|
57
|
-
|
|
53
|
+
}
|
|
54
|
+
onTodo(group, desc) {
|
|
58
55
|
this.file.write((this.first ? "\n" : ",\n") +
|
|
59
56
|
JSON.stringify({
|
|
60
57
|
group: group.name,
|
|
@@ -68,7 +65,7 @@ module.exports = /** @class */ (function () {
|
|
|
68
65
|
expected: null,
|
|
69
66
|
}));
|
|
70
67
|
this.first = false;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
;
|
|
74
71
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,iBAAiB,EAAE,MAAM,IAAI,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAGxD;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,YAAY;IACxB,MAAM,GAAqB,IAAI,CAAC;IAChC,MAAM,GAAqB,IAAI,CAAC;IAE7B,IAAI,GAAuB,IAAI,CAAC;IAElC,KAAK,GAAY,IAAI,CAAC;IAEvB,OAAO,CAAC,GAAgB;QAC7B,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACxC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAClC,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;QAC/C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,GAAG,EAAE,IAAI,GAAG,OAAO,CAAC,CAAC;QACzD,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAC/C,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAEM,MAAM,CAAC,IAAiB,EAAE,IAAc;QAC7C,IAAI,IAAI,CAAC,I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C,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC;wBACtD,MAAM,EAAE,CAAC;qBACV,CAAC,EAAE;oBACN,CAAC,CAAC,IAAI;aACT,CAAC,CACL,CAAC;QACF,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAES,MAAM,CAAC,KAAe,EAAE,IAAY;QAC5C,IAAI,CAAC,IAAK,CAAC,KAAK,CACd,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;YACzB,IAAI,CAAC,SAAS,CAAC;gBACb,KAAK,EAAE,KAAK,CAAC,IAAI;gBACjB,IAAI,EAAE,QAAQ,GAAG,IAAI;gBACrB,GAAG,EAAE,KAAK;gBACV,IAAI,EAAE,IAAI;gBACV,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,EAAE;gBACX,MAAM,EAAE,IAAI;gBACZ,QAAQ,EAAE,IAAI;aACf,CAAC,CACL,CAAC;QACF,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAAA,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@as-pect/json-reporter",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"description": "Json reporter for as-pect",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.ts",
|
|
7
|
+
"type": "module",
|
|
7
8
|
"scripts": {
|
|
8
|
-
"tsc:all": "
|
|
9
|
-
"tsc:amd": "tsc --outfile lib/as-pect.json-reporter.amd.js --module amd --declaration --declarationMap",
|
|
10
|
-
"tsc:default": "tsc",
|
|
9
|
+
"tsc:all": "tsc",
|
|
11
10
|
"test": "exit 0"
|
|
12
11
|
},
|
|
13
12
|
"repository": {
|
|
@@ -17,7 +16,6 @@
|
|
|
17
16
|
"author": "Joshua Tenner",
|
|
18
17
|
"license": "MIT",
|
|
19
18
|
"dependencies": {
|
|
20
|
-
"@as-pect/core": "^
|
|
21
|
-
}
|
|
22
|
-
"gitHead": "fbe178add7c18e2c321cd8fb65d6c3ddc0e7f869"
|
|
19
|
+
"@as-pect/core": "^7.0.1"
|
|
20
|
+
}
|
|
23
21
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
/* Basic Options */
|
|
4
|
-
"target": "
|
|
5
|
-
"module": "
|
|
4
|
+
"target": "ESNext", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
|
|
5
|
+
"module": "ESNext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
|
6
6
|
// "lib": [], /* Specify library files to be included in the compilation. */
|
|
7
7
|
"allowJs": true, /* Allow javascript files to be compiled. */
|
|
8
8
|
"checkJs": true, /* Report errors in .js files. */
|
|
@@ -38,8 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
/* Module Resolution Options */
|
|
40
40
|
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
|
41
|
-
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
|
42
|
-
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
41
|
+
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
43
42
|
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
44
43
|
// "typeRoots": [], /* List of folders to include type definitions from. */
|
|
45
44
|
// "types": [], /* Type declaration files to be included in compilation. */
|