Skip to content

Commit

Permalink
feat: NPM Package (#7)
Browse files Browse the repository at this point in the history
* Add src, README, and LICENSE to package files

* Add src/index.js to package exports

* Add jest >=25.5.0 to peer dependencies

  @jest/globals was born in 25.5.0

* Rename package to jest-ctx
  • Loading branch information
ianpurvis authored Mar 17, 2023
1 parent e973dd6 commit 5e2873b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
7 changes: 5 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
{
"name": "jest-globals-ctx",
"name": "jest-ctx",
"version": "0.0.0",
"description": "Pass context to jest hooks and tests",
"author": "Ian Purvis <ian@purvisresearch.com>",
"license": "MIT",
"type": "module",
"exports": "./src/index.js",
"files": [
"./src",
"./README.md",
"./LICENSE"
],
"scripts": {
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"test:debug": "node inspect --experimental-vm-modules node_modules/jest/bin/jest.js -- --runInBand"
},
"devDependencies": {
"jest": "^29.4.3"
},
"peerDependencies": {
"jest": ">=25.5.0"
}
}

0 comments on commit 5e2873b

Please sign in to comment.