@typespec/http 0.52.0-dev.3 → 0.52.0-dev.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGpF,eAAO,MAAM,eAAe,EAAE,mBAG5B,CAAC"}
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,eAAe,EAAE,mBAG5B,CAAC"}
@@ -1,8 +1,6 @@
1
- import { resolvePath } from "@typespec/compiler";
2
- import { createTestLibrary } from "@typespec/compiler/testing";
3
- import { fileURLToPath } from "url";
1
+ import { createTestLibrary, findTestPackageRoot, } from "@typespec/compiler/testing";
4
2
  export const HttpTestLibrary = createTestLibrary({
5
3
  name: "@typespec/http",
6
- packageRoot: resolvePath(fileURLToPath(import.meta.url), "../../../../"),
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,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAuB,MAAM,4BAA4B,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,MAAM,CAAC,MAAM,eAAe,GAAwB,iBAAiB,CAAC;IACpE,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC;CACzE,CAAC,CAAC"}
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,eAAe,GAAwB,iBAAiB,CAAC;IACpE,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,MAAM,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;CACxD,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vite").UserConfig;
2
+ export default _default;
3
+ //# sourceMappingURL=vitest.config.d.ts.map
@@ -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/http",
3
- "version": "0.52.0-dev.3",
3
+ "version": "0.52.0-dev.4",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec HTTP protocol binding",
6
6
  "homepage": "https://github.com/microsoft/typespec",
@@ -42,7 +42,6 @@
42
42
  "@typespec/compiler": "~0.51.0 || >=0.52.0-dev <0.52.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@types/mocha": "~10.0.6",
46
45
  "@types/node": "~18.11.9",
47
46
  "@typespec/compiler": "~0.51.0 || >=0.52.0-dev <0.52.0",
48
47
  "@typespec/eslint-config-typespec": "~0.51.0 || >=0.52.0-dev <0.52.0",
@@ -50,9 +49,8 @@
50
49
  "@typespec/eslint-plugin": "~0.51.0 || >=0.52.0-dev <0.52.0",
51
50
  "@typespec/tspd": "~0.46.0 || >=0.47.0-dev <0.47.0",
52
51
  "eslint": "^8.55.0",
53
- "mocha": "~10.2.0",
54
- "mocha-junit-reporter": "~2.2.1",
55
- "mocha-multi-reporters": "~1.5.1",
52
+ "vitest": "^1.1.0",
53
+ "@vitest/coverage-v8": "^1.1.0",
56
54
  "c8": "~8.0.1",
57
55
  "rimraf": "~5.0.1",
58
56
  "typescript": "~5.3.3"
@@ -63,8 +61,9 @@
63
61
  "build": "tsc -p . && npm run lint-typespec-library",
64
62
  "watch": "tsc -p . --watch",
65
63
  "lint-typespec-library": "tsp compile . --warn-as-error --import @typespec/library-linter --no-emit",
66
- "test": "mocha",
67
- "test-official": "c8 mocha --forbid-only --reporter mocha-multi-reporters",
64
+ "test": "vitest run",
65
+ "test:watch": "vitest -w",
66
+ "test-official": "vitest run --coverage --reporter=junit --reporter=default --no-file-parallelism",
68
67
  "lint": "eslint . --ext .ts --max-warnings=0",
69
68
  "lint:fix": "eslint . --fix --ext .ts",
70
69
  "regen-docs": "tspd doc . --enable-experimental --output-dir ../../docs/libraries/http/reference"