@truelab/trueserver 0.1.0 → 0.1.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/README.md CHANGED
@@ -164,7 +164,7 @@ import {
164
164
  } from '@truelab/trueserver/test-utils'
165
165
  ```
166
166
 
167
- `test-utils` uses Jest globals (`expect`), so consumers should keep `jest` and usually `@types/jest` in `devDependencies`.
167
+ `test-utils` uses a global `expect`, so consumers should run it under a test runner that provides one (e.g. Vitest or Jest) with globals enabled.
168
168
 
169
169
  ## Environment variables
170
170
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Resolve package.json from either compiled output (`dist/helpers/…`) or source (`helpers/…` under ts-jest).
2
+ * Resolve package.json from either compiled output (`dist/helpers/…`) or TypeScript source (`helpers/…`, e.g. under Vitest).
3
3
  */
4
4
  export declare function getPackageVersion(): string;
5
5
  //# sourceMappingURL=pkg-version.helper.d.ts.map
@@ -4,7 +4,7 @@ exports.getPackageVersion = getPackageVersion;
4
4
  const fs_1 = require("fs");
5
5
  const path_1 = require("path");
6
6
  /**
7
- * Resolve package.json from either compiled output (`dist/helpers/…`) or source (`helpers/…` under ts-jest).
7
+ * Resolve package.json from either compiled output (`dist/helpers/…`) or TypeScript source (`helpers/…`, e.g. under Vitest).
8
8
  */
9
9
  function getPackageVersion() {
10
10
  const candidates = [
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Test utilities for route/integration tests (`testBuild`, `validator`, etc.).
3
- * Uses Jest globals (`expect`)add `jest` and `@types/jest` in your game server project.
3
+ * Uses a global `expect` — run under a test runner that provides one (e.g. Vitest or Jest) with globals enabled.
4
4
  */
5
5
  export { checkSchemaPropertyDescriptions, testBuild, testHeaders, validator, } from './helpers/tests.helper';
6
6
  //# sourceMappingURL=test-utils.d.ts.map
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validator = exports.testHeaders = exports.testBuild = exports.checkSchemaPropertyDescriptions = void 0;
4
4
  /**
5
5
  * Test utilities for route/integration tests (`testBuild`, `validator`, etc.).
6
- * Uses Jest globals (`expect`)add `jest` and `@types/jest` in your game server project.
6
+ * Uses a global `expect` — run under a test runner that provides one (e.g. Vitest or Jest) with globals enabled.
7
7
  */
8
8
  var tests_helper_1 = require("./helpers/tests.helper");
9
9
  Object.defineProperty(exports, "checkSchemaPropertyDescriptions", { enumerable: true, get: function () { return tests_helper_1.checkSchemaPropertyDescriptions; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truelab/trueserver",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "TrueLab Fastify server package: routes, schemas, and plugins for TrueLab game backends",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -41,8 +41,8 @@
41
41
  "clean": "rm -rf dist",
42
42
  "build": "tsc -p tsconfig.json",
43
43
  "prepack": "npm run clean && npm run build",
44
- "test": "jest",
45
- "test:watch": "jest --watch"
44
+ "test": "vitest run",
45
+ "test:watch": "vitest"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public",
@@ -78,13 +78,9 @@
78
78
  "typebox": "^1.1.38"
79
79
  },
80
80
  "devDependencies": {
81
- "@babel/core": "^7.29.0",
82
- "@babel/preset-env": "^7.29.5",
83
81
  "@types/big.js": "^6.2.2",
84
- "@types/jest": "^30.0.0",
85
82
  "@types/node": "^25.8.0",
86
- "jest": "^30.4.2",
87
- "ts-jest": "^29.4.9",
88
- "typescript": "^5.9.3"
83
+ "typescript": "^5.9.3",
84
+ "vitest": "^4.1.9"
89
85
  }
90
86
  }