@ark/attest 0.12.1 → 0.13.0

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.
@@ -5,10 +5,10 @@ import { type VersionedTypeAssertion } from "../cache/getCachedAssertions.ts";
5
5
  import { type AttestConfig } from "../config.ts";
6
6
  import { ChainableAssertions, type AssertionKind, type rootAssertions } from "./chainableAssertions.ts";
7
7
  export type AttestFn = {
8
- <expected>(actual: expected): rootAssertions<expected, AssertionKind>;
9
8
  <expected, actual extends expected = never>(...args: actual extends never ? [
10
9
  ErrorMessage<"Type-only assertion requires two explicit genreic params, e.g. attest<expected, actual>">
11
10
  ] : []): void;
11
+ <expected>(actual: expected): rootAssertions<expected, AssertionKind>;
12
12
  instantiations: (count?: Measure<"instantiations"> | undefined) => void;
13
13
  };
14
14
  export type AssertionContext = {
package/out/config.d.ts CHANGED
@@ -4,7 +4,7 @@ import type ts from "typescript";
4
4
  import { type TsVersionData } from "./tsVersioning.ts";
5
5
  export type TsVersionAliases = autocomplete<"*"> | string[];
6
6
  type BaseAttestConfig = {
7
- tsconfig: string | undefined;
7
+ tsconfig: string | null | undefined;
8
8
  compilerOptions: ts.CompilerOptions;
9
9
  updateSnapshots: boolean;
10
10
  /** A string or list of strings representing the TypeScript version aliases to run.
package/out/utils.js CHANGED
@@ -19,7 +19,7 @@ const contextualizeRoot = (first, contextualTests) => {
19
19
  const testsDirChar = filePath.search(testDirName);
20
20
  const suiteNamePath = testsDirChar === -1 ?
21
21
  basename(filePath)
22
- : filePath.slice(testsDirChar + testDirName.length);
22
+ : filePath.slice(testsDirChar + testDirName.length + 1);
23
23
  const suiteName = suiteNamePath.slice(0, -testSuffix.length);
24
24
  if (contextualTests) {
25
25
  describe(suiteName, () => contextualTests((name, test) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ark/attest",
3
- "version": "0.12.1",
3
+ "version": "0.13.0",
4
4
  "author": {
5
5
  "name": "David Blass",
6
6
  "email": "david@arktype.io",
@@ -35,9 +35,9 @@
35
35
  "@typescript/analyze-trace": "0.10.1",
36
36
  "prettier": "3.3.3",
37
37
  "@prettier/sync": "0.5.2",
38
- "arktype": "2.0.0-beta.6",
39
- "@ark/util": "0.2.2",
40
- "@ark/fs": "0.2.2"
38
+ "@ark/fs": "0.3.0",
39
+ "@ark/util": "0.3.0",
40
+ "arktype": "2.0.0-rc.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "typescript": "5.5.4"