-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from EskiMojo14/jest-globals
support @jest/globals
- Loading branch information
Showing
5 changed files
with
99 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"name": "mix-n-matchers-all-globals", | ||
"version": "1.0.0", | ||
"description": "Miscellaneous custom Jest matchers", | ||
"type": "module", | ||
"main": "../dist/jest-globals.cjs", | ||
"module": "../dist/jest-globals.js", | ||
"types": "../dist/jest-globals.d.ts", | ||
"files": [ | ||
"../dist" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/EskiMojo14/mix-n-matchers.git" | ||
}, | ||
"keywords": [ | ||
"jest", | ||
"matchers", | ||
"extend", | ||
"extended", | ||
"test", | ||
"testing", | ||
"assertions" | ||
], | ||
"author": "eskimojo", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/EskiMojo14/mix-n-matchers/issues" | ||
}, | ||
"homepage": "https://github.com/EskiMojo14/mix-n-matchers#readme", | ||
"peerDependencies": { | ||
"jest": ">=28.0.0" | ||
}, | ||
"peerDependenciesMeta": { | ||
"jest": { | ||
"optional": true | ||
} | ||
}, | ||
"engines": { | ||
"node": "^14.15.0 || ^16.10.0 || >=18.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* eslint-disable @typescript-eslint/no-empty-interface */ | ||
import { expect } from "@jest/globals"; | ||
import * as mixNMatchers from "./index"; | ||
|
||
declare module "@jest/expect" { | ||
interface Matchers<R> extends mixNMatchers.MixNMatchers<R> {} | ||
interface AsymmetricMatchers extends mixNMatchers.AsymmetricMixNMatchers {} | ||
} | ||
|
||
expect.extend(mixNMatchers); |