@knapsack-pro/jest 7.1.0 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -86
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
<div align="center">
|
|
15
|
-
<a href="https://circleci.com/gh/KnapsackPro/knapsack-pro-
|
|
16
|
-
<img alt="Circle CI" src="https://circleci.com/gh/KnapsackPro/knapsack-pro-
|
|
15
|
+
<a href="https://circleci.com/gh/KnapsackPro/knapsack-pro-js">
|
|
16
|
+
<img alt="Circle CI" src="https://circleci.com/gh/KnapsackPro/knapsack-pro-js.svg?style=svg" />
|
|
17
17
|
</a>
|
|
18
18
|
</div>
|
|
19
19
|
|
|
@@ -62,87 +62,4 @@ To test `@knapsack-pro/jest` against a real test suite we use:
|
|
|
62
62
|
|
|
63
63
|
### Publishing
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
1. Sign in to the npm registry with:
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
npm adduser
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
1. Ensure you have the latest version of `@knapsack-pro/core` in `package.json` (do the change in a separate PR to have it appear in the CHANGELOG):
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
{
|
|
77
|
-
"dependencies": {
|
|
78
|
-
"@knapsack-pro/core": "^x.x.x"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
and run `npm install`.
|
|
84
|
-
|
|
85
|
-
Commit the updated `package.json` and `package-lock.json`:
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
git commit -am "deps(jest): update @knapsack-pro/core"
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
1. Before releasing a new version of the package, please update `CHANGELOG.md` with [`github_changelog_generator`](https://github.com/github-changelog-generator/github-changelog-generator):
|
|
92
|
-
|
|
93
|
-
```bash
|
|
94
|
-
gem install github_changelog_generator
|
|
95
|
-
|
|
96
|
-
# generate CHANGELOG.md
|
|
97
|
-
github_changelog_generator --user KnapsackPro --project knapsack-pro-js --pr-wo-labels --issues-wo-labels --include-labels @knapsack-pro/jest --since-tag @knapsack-pro/jest@6.2.0 --exclude-tags-regex "@knapsack-pro\/(core|cypress)@.*"
|
|
98
|
-
git commit -am "docs(jest): update CHANGELOG.md"
|
|
99
|
-
git push origin main
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
1. If you have added new files to the repository, and they should be part of the released npm package, please ensure they are included in the `files` array in `package.json`.
|
|
103
|
-
|
|
104
|
-
1. Compile the project:
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
npm run build
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
1. In order to [bump the version of the package](https://docs.npmjs.com/cli/version) run the command below. It will also create a version commit and tag for the release:
|
|
111
|
-
|
|
112
|
-
```bash
|
|
113
|
-
# Bump patch version 0.0.x
|
|
114
|
-
npm version patch --no-commit-hooks --tag-version-prefix=@knapsack-pro/jest@
|
|
115
|
-
|
|
116
|
-
# Bump minor version 0.x.0
|
|
117
|
-
npm version minor --no-commit-hooks --tag-version-prefix=@knapsack-pro/jest@
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
```bash
|
|
121
|
-
git commit -am @knapsack-pro/jest@x.x.x
|
|
122
|
-
git tag @knapsack-pro/jest@x.x.x
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
1. Push the commit and tag:
|
|
126
|
-
|
|
127
|
-
```bash
|
|
128
|
-
git push origin main --tags
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
1. When the git tag is on Github, you can update `CHANGELOG.md`:
|
|
132
|
-
|
|
133
|
-
```bash
|
|
134
|
-
github_changelog_generator --user KnapsackPro --project knapsack-pro-js --pr-wo-labels --issues-wo-labels --include-labels @knapsack-pro/jest --since-tag @knapsack-pro/jest@6.2.0 --exclude-tags-regex "@knapsack-pro\/(core|cypress)@.*"
|
|
135
|
-
git commit -am "docs(jest): update CHANGELOG.md"
|
|
136
|
-
git push origin main
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
1. Publish the package to the npm registry:
|
|
140
|
-
|
|
141
|
-
```bash
|
|
142
|
-
npm publish
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
1. Update the latest available library version in:
|
|
146
|
-
|
|
147
|
-
- `TestSuiteClientVersionChecker` for the Knapsack Pro API repository.
|
|
148
|
-
- [jest-example-test-suite](https://github.com/KnapsackPro/knapsack-pro-js/tree/main/packages/jest-example-test-suite)
|
|
65
|
+
See [Publishing](../../#publishing) in the root README.md.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knapsack-pro/jest",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"description": "Knapsack Pro Jest splits Jest tests across CI nodes and makes sure that tests will run in optimal time on each CI node.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"knapsack",
|
|
@@ -52,22 +52,22 @@
|
|
|
52
52
|
"knapsack-pro-jest": "lib/knapsack-pro-jest.js"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@knapsack-pro/core": "^6.
|
|
55
|
+
"@knapsack-pro/core": "^6.2.0",
|
|
56
56
|
"glob": "^8.0.3",
|
|
57
57
|
"minimatch": "^5.1.0",
|
|
58
58
|
"minimist": "^1.2.6",
|
|
59
|
-
"uuid": "^
|
|
59
|
+
"uuid": "^9.0.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"jest": ">=22.0.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@babel/core": "^7.
|
|
65
|
+
"@babel/core": "^7.22.5",
|
|
66
66
|
"@babel/preset-env": "^7.18.2",
|
|
67
|
-
"@babel/register": "^7.
|
|
67
|
+
"@babel/register": "^7.22.5",
|
|
68
68
|
"@types/glob": "^7.2.0",
|
|
69
69
|
"@types/jest": "^28.1.1",
|
|
70
|
-
"@types/node": "^
|
|
70
|
+
"@types/node": "^20.3.1",
|
|
71
71
|
"@typescript-eslint/eslint-plugin": "^5.27.1",
|
|
72
72
|
"@typescript-eslint/parser": "^5.27.1",
|
|
73
73
|
"del": "^6.1.1",
|