Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
feat: intergrate supertest
Browse files Browse the repository at this point in the history
  • Loading branch information
zanminkian committed May 16, 2023
1 parent a86a426 commit 6eeba3d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tiny-mails-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zanminkian/powerful-jest": patch
---

feat: intergrate supertest
4 changes: 3 additions & 1 deletion packages/powerful-jest/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zanminkian/powerful-jest",
"type": "module",
"version": "0.1.11",
"version": "0.1.12-beta.0",
"description": "Make jest powerful.",
"author": "hellozmj@qq.com",
"license": "MIT",
Expand All @@ -23,8 +23,10 @@
},
"dependencies": {
"@jest/globals": "^29.5.0",
"@types/supertest": "^2.0.12",
"cosmiconfig": "^8.1.3",
"jest": "^29.5.0",
"supertest": "^6.3.3",
"ts-jest": "^29.1.0",
"yargs": "^17.7.2"
},
Expand Down
1 change: 1 addition & 0 deletions packages/powerful-jest/src/index.cjs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
module.exports = require('@jest/globals')
module.exports.supertest = require('supertest')
2 changes: 2 additions & 0 deletions packages/powerful-jest/src/index.d.cts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
xit,
xtest,
} from '@jest/globals'
import supertest from 'supertest'

export {
expect,
Expand All @@ -29,6 +30,7 @@ export {
beforeEach,
afterEach,
afterAll,
supertest,
}

declare global {
Expand Down
2 changes: 2 additions & 0 deletions packages/powerful-jest/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
xit,
xtest,
} from '@jest/globals'
import supertest from 'supertest'

export {
expect,
Expand All @@ -29,6 +30,7 @@ export {
beforeEach,
afterEach,
afterAll,
supertest,
}

declare global {
Expand Down
1 change: 1 addition & 0 deletions packages/powerful-jest/src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from '@jest/globals'
export * as supertest from 'supertest'

0 comments on commit 6eeba3d

Please sign in to comment.