New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@abstractest/types

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abstractest/types - npm Package Compare versions

Comparing version 0.0.0 to 0.1.0

src/main/ts/mock.d.ts

4

package.json
{
"name": "@abstractest/types",
"version": "0.0.0",
"version": "0.1.0",
"description": "abstractest types",

@@ -28,3 +28,3 @@ "publishConfig": {

"@abstractest/infra": "workspace:*",
"@types/node": "^20.2.6"
"@types/node": "^20.3.1"
},

@@ -31,0 +31,0 @@ "files": [

// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/test.d.ts
import {FunctionLike, Mock, SpyOn, UnknownFunction} from './mock'
import {Describe, Expect, Hook, It, Mocker} from '@abstractest/types'
declare module '@abstractest/types' {

@@ -38,2 +41,3 @@ export type Done = (result?: any) => void

afterEach: Hook
mock: Mocker
}

@@ -51,13 +55,21 @@

toEqual(val: any): void
toHaveBeenCalled(): void
toHaveBeenCalledTimes(n: number): void
}
global {
const it: It
const describe: Describe
const expect: Expect
const before: Hook
const beforeEach: Hook
const after: Hook
const afterEach: Hook
export type Mocker = {
fn<T extends FunctionLike = UnknownFunction>(implementation?: T): Mock<T>
spyOn: SpyOn
}
}
declare global {
const it: It
const describe: Describe
const expect: Expect
const before: Hook
const beforeEach: Hook
const after: Hook
const afterEach: Hook
const mock: Mocker
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc