Files
pezkuwi-dev/packages/dev-test/src/globals.d.ts
T
Kurdistan Tech Ministry b65f265e87 Fix TypeScript type definitions for test suite
- Add explicit Describe and It interfaces with todo support
- Fix mock type compatibility in jest.ts
- Update import assertions to import attributes (assert -> with)
- Add dynamic.d.mts declaration file
- Fix spec files to use explicit type declarations
2026-01-17 21:02:45 +03:00

31 lines
818 B
TypeScript

// Copyright 2017-2026 @pezkuwi/dev-test authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* eslint-disable no-var */
import type { expect } from './env/expect.js';
import type { jest } from './env/jest.js';
import type { lifecycle } from './env/lifecycle.js';
import type { Describe, It } from './env/suite.js';
type Expect = ReturnType<typeof expect>;
type Jest = ReturnType<typeof jest>;
type Lifecycle = ReturnType<typeof lifecycle>;
declare global {
var after: Lifecycle['after'];
var afterAll: Lifecycle['afterAll'];
var afterEach: Lifecycle['afterEach'];
var before: Lifecycle['before'];
var beforeAll: Lifecycle['beforeAll'];
var beforeEach: Lifecycle['beforeEach'];
var describe: Describe;
var expect: Expect['expect'];
var it: It;
var jest: Jest['jest'];
}
export {};