Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@japa/expect

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@japa/expect - npm Package Compare versions

Comparing version
1.0.1
to
1.1.0
+3
-3
build/index.d.ts
import { default as jestExpect } from 'expect';
import type { Test as TestContract, TestContext as TestContextContract } from '@japa/core';
import type { PluginFn } from '@japa/runner';
/**

@@ -8,4 +8,4 @@ * Jest expect type

/**
* Expect plugin for japa/runner
* Expect plugin for "@japa/runner"
*/
export declare function expect(): (Context: typeof TestContextContract, Test: typeof TestContract) => void;
export declare function expect(): PluginFn;

@@ -17,8 +17,8 @@ "use strict";

/**
* Expect plugin for japa/runner
* Expect plugin for "@japa/runner"
*/
function expect() {
return function (Context, Test) {
Context.getter('expect', () => expect_1.default, true);
Test.dispose(function (_, hasError) {
return function (_, __, { TestContext, Test }) {
TestContext.getter('expect', () => expect_1.default, true);
Test.dispose(function (___, hasError) {
if (hasError) {

@@ -25,0 +25,0 @@ return;

{
"name": "@japa/expect",
"version": "1.0.1",
"version": "1.1.0",
"description": "Assertion package built on top of Jest expect",

@@ -38,4 +38,4 @@ "main": "build/index.js",

"@adonisjs/require-ts": "^2.0.9",
"@japa/core": "^5.0.10-0",
"@types/node": "^17.0.13",
"@japa/runner": "^1.1.1",
"@types/node": "^17.0.17",
"commitizen": "^4.2.4",

@@ -109,3 +109,3 @@ "cz-conventional-changelog": "^3.3.0",

"dependencies": {
"expect": "^27.4.6"
"expect": "^27.5.1"
},

@@ -112,0 +112,0 @@ "publishConfig": {