@typespec/html-program-viewer 0.52.0-dev.1 → 0.52.0-dev.2
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/src/emitter.d.ts +1 -1
- package/dist/src/emitter.d.ts.map +1 -1
- package/dist/src/testing/index.d.ts.map +1 -1
- package/dist/src/testing/index.js +2 -4
- package/dist/src/testing/index.js.map +1 -1
- package/dist/vitest.config.d.ts +3 -0
- package/dist/vitest.config.d.ts.map +1 -0
- package/dist/vitest.config.js +14 -0
- package/dist/vitest.config.js.map +1 -0
- package/package.json +6 -7
package/dist/src/emitter.d.ts
CHANGED
|
@@ -15,6 +15,6 @@ export declare const libDef: {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const $lib: import("@typespec/compiler").TypeSpecLibrary<{
|
|
17
17
|
[code: string]: import("@typespec/compiler").DiagnosticMessages;
|
|
18
|
-
}, HtmlProgramViewerOptions>;
|
|
18
|
+
}, HtmlProgramViewerOptions, never>;
|
|
19
19
|
export declare function $onEmit(context: EmitContext<HtmlProgramViewerOptions>): Promise<void>;
|
|
20
20
|
//# sourceMappingURL=emitter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emitter.d.ts","sourceRoot":"","sources":["../../src/emitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,oBAAoB,CAAC;AAGxE,OAAO,EAAyB,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAE3E,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAWD,eAAO,MAAM,MAAM;;;;;;CAMT,CAAC;AAEX,eAAO,MAAM,IAAI;;
|
|
1
|
+
{"version":3,"file":"emitter.d.ts","sourceRoot":"","sources":["../../src/emitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,oBAAoB,CAAC;AAGxE,OAAO,EAAyB,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAE3E,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAWD,eAAO,MAAM,MAAM;;;;;;CAMT,CAAC;AAEX,eAAO,MAAM,IAAI;;mCAAgC,CAAC;AAElD,wBAAsB,OAAO,CAAC,OAAO,EAAE,WAAW,CAAC,wBAAwB,CAAC,iBAQ3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EACpB,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,wBAAwB,EAAE,mBAGrC,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createTestLibrary } from "@typespec/compiler/testing";
|
|
3
|
-
import { fileURLToPath } from "url";
|
|
1
|
+
import { createTestLibrary, findTestPackageRoot, } from "@typespec/compiler/testing";
|
|
4
2
|
export const ProgramViewerTestLibrary = createTestLibrary({
|
|
5
3
|
name: "@typespec/html-program-viewer",
|
|
6
|
-
packageRoot:
|
|
4
|
+
packageRoot: await findTestPackageRoot(import.meta.url),
|
|
7
5
|
});
|
|
8
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,mBAAmB,GAEpB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,CAAC,MAAM,wBAAwB,GAAwB,iBAAiB,CAAC;IAC7E,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE,MAAM,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;CACxD,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitest.config.d.ts","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":";AAEA,wBAWG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineConfig } from "vitest/config";
|
|
2
|
+
export default defineConfig({
|
|
3
|
+
test: {
|
|
4
|
+
environment: "node",
|
|
5
|
+
isolate: false,
|
|
6
|
+
coverage: {
|
|
7
|
+
reporter: ["cobertura", "json", "text"],
|
|
8
|
+
},
|
|
9
|
+
outputFile: {
|
|
10
|
+
junit: "./test-results.xml",
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=vitest.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitest.config.js","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAe,YAAY,CAAC;IAC1B,IAAI,EAAE;QACJ,WAAW,EAAE,MAAM;QACnB,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE;YACR,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC;SACxC;QACD,UAAU,EAAE;YACV,KAAK,EAAE,oBAAoB;SAC5B;KACF;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/html-program-viewer",
|
|
3
|
-
"version": "0.52.0-dev.
|
|
3
|
+
"version": "0.52.0-dev.2",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec library for emitting an html view of the program.",
|
|
6
6
|
"homepage": "https://microsoft.github.io/typespec",
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
"@emotion/react": "^11.11.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@types/mocha": "~10.0.6",
|
|
52
51
|
"@types/node": "~18.11.9",
|
|
53
52
|
"@types/react": "~18.2.22",
|
|
54
53
|
"@types/react-dom": "~18.2.7",
|
|
@@ -56,9 +55,8 @@
|
|
|
56
55
|
"@typespec/eslint-config-typespec": "~0.51.0 || >=0.52.0-dev <0.52.0",
|
|
57
56
|
"@babel/core": "^7.22.20",
|
|
58
57
|
"eslint": "^8.55.0",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"mocha-multi-reporters": "~1.5.1",
|
|
58
|
+
"vitest": "^1.1.0",
|
|
59
|
+
"@vitest/coverage-v8": "^1.1.0",
|
|
62
60
|
"c8": "~8.0.1",
|
|
63
61
|
"rimraf": "~5.0.1",
|
|
64
62
|
"typescript": "~5.3.3"
|
|
@@ -67,8 +65,9 @@
|
|
|
67
65
|
"clean": "rimraf ./dist ./temp",
|
|
68
66
|
"build": "tsc -p .",
|
|
69
67
|
"watch": "tsc -p . --watch",
|
|
70
|
-
"test": "
|
|
71
|
-
"test
|
|
68
|
+
"test": "vitest run",
|
|
69
|
+
"test:watch": "vitest -w",
|
|
70
|
+
"test-official": "vitest run --coverage --reporter=junit --reporter=default --no-file-parallelism",
|
|
72
71
|
"lint": "eslint . --ext .ts --max-warnings=0",
|
|
73
72
|
"lint:fix": "eslint . --fix --ext .ts"
|
|
74
73
|
}
|