@japa/expect
Advanced tools
+3
-3
| 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; |
+4
-4
@@ -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; |
+4
-4
| { | ||
| "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": { |
6981
-1.19%Updated