@open-dpp/dto 6.3.5 → 6.3.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-dpp/dto",
3
- "version": "6.3.5",
3
+ "version": "6.3.6",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/open-dpp/open-dpp#readme",
@@ -36,19 +36,15 @@
36
36
  "zod": "^4.4.3"
37
37
  },
38
38
  "devDependencies": {
39
- "@jest/globals": "^30.3.0",
40
- "@swc/core": "^1.16.20",
41
- "@swc/jest": "^0.2.39",
42
39
  "@tsconfig/node-lts": "^24.0.0",
43
40
  "@tsconfig/node-ts": "^23.6.4",
44
- "@types/jest": "^30.0.0",
45
41
  "@types/node": "^26.6.6",
46
- "jest": "^30.4.2",
47
42
  "typescript": "^5.9.3"
48
43
  },
49
44
  "scripts": {
50
45
  "build": "tsc --project tsconfig.build.json",
51
46
  "check-ts": "tsc --noEmit",
52
- "test": "jest"
47
+ "test": "vitest run",
48
+ "test:cov": "vitest run --coverage"
53
49
  }
54
50
  }
@@ -1,4 +1,4 @@
1
- import { expect } from "@jest/globals";
1
+ import { describe, expect, it } from "vitest";
2
2
  import { z } from "zod";
3
3
  import { DataTypeDef } from "./enums/data-type-def";
4
4
 
@@ -1,5 +1,5 @@
1
1
  import type { ValueResponseDto } from "./value-response.dto";
2
- import { expect } from "@jest/globals";
2
+ import { describe, expect, it } from "vitest";
3
3
  import { ValueSchema } from "./value-response.dto";
4
4
 
5
5
  describe("valueResponseDto", () => {
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from "@jest/globals";
1
+ import { describe, expect, it } from "vitest";
2
2
  import {
3
3
  ApiKeyDtoSchema,
4
4
  ApiKeyPaginationDtoSchema,
@@ -1,4 +1,4 @@
1
- import { expect } from "@jest/globals";
1
+ import { describe, expect, it } from "vitest";
2
2
  import {
3
3
  ContinueAuthorizationDtoSchema,
4
4
  ContinueAuthorizationResponseDtoSchema,
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from "@jest/globals";
1
+ import { describe, expect, it } from "vitest";
2
2
  import { OrganizationCreateDtoSchema, OrganizationDtoSchema } from "./organization.dto";
3
3
 
4
4
  const validOrganization = {
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from "@jest/globals";
1
+ import { describe, expect, it } from "vitest";
2
2
  import {
3
3
  LEGACY_PERMALINK_KIND,
4
4
  PassportPermalinkBundleDtoSchema,
@@ -1,3 +1,4 @@
1
+ import { describe, expect, it } from "vitest";
1
2
  import { PolicyKeyList, SetPolicyLimitsDtoSchema } from "./policy.dto";
2
3
 
3
4
  describe("setPolicyLimitsDtoSchema", () => {
@@ -1,5 +1,5 @@
1
1
  import { randomUUID } from "node:crypto";
2
- import { describe, expect, it } from "@jest/globals";
2
+ import { describe, expect, it } from "vitest";
3
3
  import { KeyTypes } from "../aas/enums/key-types-enum";
4
4
  import {
5
5
  PresentationComponentName,
@@ -1,3 +1,4 @@
1
+ import { describe, expect, it } from "vitest";
1
2
  import { baseUrlOrigin, PermalinkBaseUrlSchema } from "./permalink-base-url.schema";
2
3
  import { LatestApiVersionWithPrefixDto } from "../api-version.dto";
3
4
 
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from "@jest/globals";
1
+ import { describe, expect, it } from "vitest";
2
2
  import { Gs1DataAttributeAi, Gs1KeyAi, Gs1QualifierAi } from "./gs1-ai-constants";
3
3
  import { GS1_AI_TABLE, type Gs1AiTableEntry } from "./gs1-ai-table";
4
4
 
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from "@jest/globals";
1
+ import { describe, expect, it } from "vitest";
2
2
  import { getGs1AiDescription } from "./gs1-ai-description";
3
3
  import { GS1_AI_I18N, type Gs1AiI18nEntry } from "./gs1-ai-i18n";
4
4
 
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from "@jest/globals";
1
+ import { describe, expect, it } from "vitest";
2
2
  import { GS1_AI_TABLE, type Gs1AiTableEntry } from "./gs1-ai-table";
3
3
 
4
4
  /** Wide view so specs can index with runtime strings regardless of literal keys. */
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from "@jest/globals";
1
+ import { describe, expect, it } from "vitest";
2
2
  import { Gs1DataAttributesSchema } from "./gs1-data-attributes.dto";
3
3
 
4
4
  describe("Gs1DataAttributesSchema", () => {
@@ -1,4 +1,4 @@
1
- import { describe, expect, it } from "@jest/globals";
1
+ import { describe, expect, it } from "vitest";
2
2
  import { GS1_AI_TABLE, type Gs1AiTableEntry } from "./gs1-ai-table";
3
3
  import {
4
4
  buildGs1DataAttributeQuery,
@@ -1,4 +1,4 @@
1
- import { expect } from "@jest/globals";
1
+ import { describe, expect, it } from "vitest";
2
2
  import { CreateUserDtoSchema } from "./create-user.dto";
3
3
 
4
4
  const validInput = {
@@ -1,4 +1,4 @@
1
- import { expect } from "@jest/globals";
1
+ import { describe, expect, it } from "vitest";
2
2
  import { Language } from "../aas/enums/language-enum";
3
3
  import { MeDtoSchema } from "./me.dto";
4
4
 
@@ -1,4 +1,4 @@
1
- import { expect } from "@jest/globals";
1
+ import { describe, expect, it } from "vitest";
2
2
  import { PendingEmailChangeDtoSchema } from "./pending-email-change.dto";
3
3
 
4
4
  describe("PendingEmailChangeDtoSchema", () => {
@@ -1,4 +1,4 @@
1
- import { expect } from "@jest/globals";
1
+ import { describe, expect, it } from "vitest";
2
2
  import { RequestEmailChangeDtoSchema } from "./request-email-change.dto";
3
3
 
4
4
  describe("RequestEmailChangeDtoSchema", () => {
@@ -1,4 +1,4 @@
1
- import { expect } from "@jest/globals";
1
+ import { describe, expect, it } from "vitest";
2
2
  import { UpdateProfileDtoSchema } from "./update-profile.dto";
3
3
 
4
4
  describe("updateProfileDto", () => {
@@ -1,4 +1,4 @@
1
- import { expect } from "@jest/globals";
1
+ import { describe, expect, it } from "vitest";
2
2
  import { UserDtoSchema } from "./user.dto";
3
3
 
4
4
  const validBase = {