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.1.2
to
1.1.3
+5
-0
build/index.d.ts

@@ -11,1 +11,6 @@ import { default as jestExpect } from 'expect';

export declare function expect(): PluginFn;
declare module '@japa/runner' {
interface TestContext {
expect: Expect;
}
}
+8
-8
{
"name": "@japa/expect",
"version": "1.1.2",
"version": "1.1.3",
"description": "Assertion package built on top of Jest expect",

@@ -36,10 +36,10 @@ "main": "build/index.js",

"devDependencies": {
"@adonisjs/mrm-preset": "^5.0.2",
"@adonisjs/mrm-preset": "^5.0.3",
"@adonisjs/require-ts": "^2.0.10",
"@japa/runner": "^2.0.1",
"@types/node": "^17.0.21",
"@japa/runner": "^2.0.4",
"@types/node": "^17.0.22",
"commitizen": "^4.2.4",
"cz-conventional-changelog": "^3.3.0",
"del-cli": "^4.0.1",
"eslint": "^8.10.0",
"eslint": "^8.11.0",
"eslint-config-prettier": "^8.5.0",

@@ -51,5 +51,5 @@ "eslint-plugin-adonis": "^2.1.0",

"japa": "^4.0.0",
"mrm": "^3.0.10",
"np": "^7.6.0",
"prettier": "^2.5.1",
"mrm": "^4.0.0",
"np": "^7.6.1",
"prettier": "^2.6.0",
"typescript": "^4.6.2"

@@ -56,0 +56,0 @@ },

@@ -37,17 +37,2 @@ # @japa/expect

## TypeScript types
TypeScript will not provide intellisense for the `expect` property, since it is added at runtime.
However, you can define the static type using the TypeScript module augmentation. Create a new file `japa-types.ts` and write the following code inside it.
```ts
import { Expect } from '@japa/expect'
declare module '@japa/runner' {
interface TestContext {
expect: Expect
}
}
```
[github-actions-url]: https://github.com/japa/expect/actions/workflows/test.yml "github-actions"

@@ -54,0 +39,0 @@