diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a2f54a1..118ba21 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -41,6 +41,9 @@ jobs: - name: Build run: npm run build + + - name: Test + run: npm test docs: needs: ci runs-on: ubuntu-latest diff --git a/package.json b/package.json index d08302c..5696123 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "format:check": "prettier --check .", "format": "prettier --write .", "lint": "tsc --noEmit && eslint src", + "test": "tsx --test", "build": "tsc -p tsconfig.json", "build:docs": "typedoc", "prepublishOnly": "npm run build" diff --git a/src/internal/struct.ts b/src/internal/struct.ts index 9323ab1..b298ee9 100644 --- a/src/internal/struct.ts +++ b/src/internal/struct.ts @@ -1,6 +1,5 @@ import type { ClassLike } from '../types.js'; import type * as primitive from './primitives.js'; -import './struct-symbols.js'; // @ts-expect-error 2322 Symbol.struct_init ||= Symbol('struct_init');