mirror of
https://github.com/pezkuwichain/pezkuwi-dev.git
synced 2026-11-01 06:59:48 +00:00
- 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
31 lines
818 B
TypeScript
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 {};
|