backport 8.4.1 → 8.4.4

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.
Files changed (30) hide show
  1. package/dist/lib/author.d.ts +13 -0
  2. package/dist/lib/author.js +28 -0
  3. package/dist/lib/cherrypickAndCreateTargetPullRequest.js +26 -21
  4. package/dist/lib/cherrypickAndCreateTargetPullRequest.test.js +2 -0
  5. package/dist/lib/child-process-promisified.d.ts +1 -1
  6. package/dist/lib/child-process-promisified.js +14 -3
  7. package/dist/lib/git.d.ts +10 -7
  8. package/dist/lib/git.js +28 -6
  9. package/dist/lib/git.private.test.js +24 -4
  10. package/dist/lib/git.test.js +47 -9
  11. package/dist/lib/github/v4/apiRequestV4.js +14 -8
  12. package/dist/lib/setupRepo.test.js +5 -5
  13. package/dist/test/e2e/cli/different-merge-strategies.private.test.js +14 -14
  14. package/dist/test/e2e/cli/error-handling-interactive-mode.private.test.js +25 -12
  15. package/dist/test/e2e/cli/gracefully-handles-corrupt-repo.private.test.d.ts +1 -0
  16. package/dist/test/e2e/cli/gracefully-handles-corrupt-repo.private.test.js +52 -0
  17. package/dist/test/e2e/cli/repo-with-programatically-added-commits.mutation.test.d.ts +1 -0
  18. package/dist/test/e2e/cli/repo-with-programatically-added-commits.mutation.test.js +114 -0
  19. package/dist/test/e2e/cli/runBackportViaCli.js +2 -2
  20. package/dist/test/e2e/cli/test-that-repo-can-be-cloned.private.test.js +6 -1
  21. package/dist/test/replaceStringAndLinebreaks.d.ts +5 -0
  22. package/dist/test/replaceStringAndLinebreaks.js +8 -0
  23. package/dist/test/sandbox.d.ts +1 -0
  24. package/dist/test/sandbox.js +8 -3
  25. package/dist/utils/packageVersion.d.ts +1 -1
  26. package/dist/utils/packageVersion.js +1 -1
  27. package/package.json +20 -20
  28. package/yarn.lock +853 -955
  29. package/dist/lib/getGitConfigAuthor.d.ts +0 -6
  30. package/dist/lib/getGitConfigAuthor.js +0 -15
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const promises_1 = __importDefault(require("fs/promises"));
7
7
  const child_process_promisified_1 = require("../../../lib/child-process-promisified");
8
8
  const getDevAccessToken_1 = require("../../private/getDevAccessToken");
9
+ const replaceStringAndLinebreaks_1 = require("../../replaceStringAndLinebreaks");
9
10
  const sandbox_1 = require("../../sandbox");
10
11
  const runBackportViaCli_1 = require("./runBackportViaCli");
11
12
  const accessToken = (0, getDevAccessToken_1.getDevAccessToken)();
@@ -29,8 +30,8 @@ describe('different-merge-strategies', () => {
29
30
  7. Merge strategy: Third of many merges
30
31
  8. Merge strategy: Second of many merges
31
32
  9. Merge strategy: First of many merges
32
- 10.Using squash to merge commits (#3) 7.x
33
- 11.Rebase strategy: Second commit 7.x
33
+ 10.Using squash to merge commits (#3)
34
+ 11.Rebase strategy: Second commit
34
35
  12.Rebase strategy: First commit
35
36
  13.Merge pull request #1 from backport-org/merge-strategy
36
37
  14.Merge strategy: Second commit
@@ -146,17 +147,14 @@ describe('different-merge-strategies', () => {
146
147
  showOra: true,
147
148
  timeoutSeconds: 5,
148
149
  });
149
- output = res.output.replaceAll(sandboxPath, '');
150
+ output = (0, replaceStringAndLinebreaks_1.replaceStringAndLinebreaks)({
151
+ haystack: res.output,
152
+ stringBefore: sandboxPath,
153
+ stringAfter: '<SANDBOX_PATH>',
154
+ });
150
155
  });
151
156
  it('has the right output', async () => {
152
- function stripSandboxPath(str) {
153
- const regex = sandboxPath
154
- .split('')
155
- .map((s) => `${s}\\s?`)
156
- .join('');
157
- return str.replace(new RegExp(regex, 'g'), '<SANDBOX_PATH>');
158
- }
159
- expect(stripSandboxPath(output)).toMatchInlineSnapshot(`
157
+ expect(output).toMatchInlineSnapshot(`
160
158
  "- Initializing...
161
159
  ? Select pull request Merge pull request #9 from backport-org/many-merge-commits
162
160
  ✔ 100% Cloning repository from github.com (one-time operation)
@@ -169,17 +167,19 @@ describe('different-merge-strategies', () => {
169
167
 
170
168
  The commit could not be backported due to conflicts
171
169
 
172
- Please fix the conflicts in
170
+ Please fix the conflicts in <SANDBOX_PATH>
173
171
  ? Fix the following conflicts manually:
174
172
 
175
173
  Conflicting files:
176
- - <SANDBOX_PATH>/new-file-added-with-many-merge-commits.txt
174
+ - <SANDBOX_PATH>/new-fi
175
+ le-added-with-many-merge-commits.txt
177
176
 
178
177
 
179
178
  Press ENTER when the conflicts are resolved and files are staged (Y/n) ? Fix the following conflicts manually:
180
179
 
181
180
  Conflicting files:
182
- - <SANDBOX_PATH>/new-file-added-with-many-merge-commits.txt
181
+ - <SANDBOX_PATH>/new-fi
182
+ le-added-with-many-merge-commits.txt
183
183
 
184
184
 
185
185
  Press ENTER when the conflicts are resolved and files are staged Yes
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const getDevAccessToken_1 = require("../../private/getDevAccessToken");
4
+ const replaceStringAndLinebreaks_1 = require("../../replaceStringAndLinebreaks");
4
5
  const sandbox_1 = require("../../sandbox");
5
6
  const runBackportViaCli_1 = require("./runBackportViaCli");
6
7
  const accessToken = (0, getDevAccessToken_1.getDevAccessToken)();
@@ -65,17 +66,29 @@ describe('interactive error handling', () => {
65
66
  waitForString: 'Press ENTER when the conflicts',
66
67
  timeoutSeconds: 5,
67
68
  });
68
- // //@ts-expect-error
69
- // const lineToReplace = output.match(
70
- // /Conflicting files:[\s]+- (.*[\s].*)la-liga.md/
71
- // )[1];
72
- // const lineWithoutBreaks = lineToReplace.replace(/\s/g, '');
73
- // const outputReplaced = output
74
- // .replace(lineToReplace, lineWithoutBreaks)
75
- // .replaceAll(backportDir, '<BACKPORT_DIR>');
76
- const outputReplaced = output
77
- .replaceAll('\n', '')
78
- .replaceAll(backportDir, '<BACKPORT_DIR>');
79
- expect(outputReplaced).toMatchInlineSnapshot(`"Backporting to 7.x:The commit could not be backported due to conflictsPlease fix the conflicts in <BACKPORT_DIR>Hint: Before fixing the conflicts manually you should consider backporting the following pull requests to \\"7.x\\": - Change Barca to Braithwaite (#8) (backport missing) https://github.com/backport-org/repo-with-conflicts/pull/8? Fix the following conflicts manually:Conflicting files: - <BACKPORT_DIR>/la-liga.mdPress ENTER when the conflicts are resolved and files are staged (Y/n)"`);
69
+ expect((0, replaceStringAndLinebreaks_1.replaceStringAndLinebreaks)({
70
+ haystack: output,
71
+ stringBefore: backportDir,
72
+ stringAfter: '<BACKPORT_DIR>',
73
+ })).toMatchInlineSnapshot(`
74
+ "Backporting to 7.x:
75
+
76
+ The commit could not be backported due to conflicts
77
+
78
+ Please fix the conflicts in <BACKPORT_DIR>
79
+ Hint: Before fixing the conflicts manually you should consider backporting the following pull requests to \\"7.x\\":
80
+ - Change Barca to Braithwaite (#8) (backport missing)
81
+ https://github.com/backport-org/repo-with-conflicts/pull/8
82
+
83
+
84
+ ? Fix the following conflicts manually:
85
+
86
+ Conflicting files:
87
+ - <BACKPORT_DIR>/l
88
+ a-liga.md
89
+
90
+
91
+ Press ENTER when the conflicts are resolved and files are staged (Y/n)"
92
+ `);
80
93
  });
81
94
  });
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const child_process_promisified_1 = require("../../../lib/child-process-promisified");
4
+ const getDevAccessToken_1 = require("../../private/getDevAccessToken");
5
+ const sandbox_1 = require("../../sandbox");
6
+ const runBackportViaCli_1 = require("./runBackportViaCli");
7
+ const accessToken = (0, getDevAccessToken_1.getDevAccessToken)();
8
+ jest.setTimeout(15000);
9
+ describe('gracefully handle corrupted repo', () => {
10
+ it('backports correctly', async () => {
11
+ const sandboxPath = (0, sandbox_1.getSandboxPath)({ filename: __filename });
12
+ await (0, sandbox_1.resetSandbox)(sandboxPath);
13
+ // first run: backport should clone the repo
14
+ await (0, runBackportViaCli_1.runBackportViaCli)([
15
+ '--repo=backport-org/integration-test',
16
+ '--sha=16cfd987b82f49a79ebc663506f5d215b7a81c5c',
17
+ '--branch=7.x',
18
+ `--accessToken=${accessToken}`,
19
+ `--dir=${sandboxPath}`,
20
+ '--dry-run',
21
+ ], {
22
+ showOra: true,
23
+ timeoutSeconds: 10,
24
+ });
25
+ // remove all git objects and references
26
+ await (0, child_process_promisified_1.exec)('rm -rf .git', { cwd: sandboxPath });
27
+ await (0, child_process_promisified_1.exec)('git init', { cwd: sandboxPath });
28
+ const { output } = await (0, runBackportViaCli_1.runBackportViaCli)([
29
+ '--repo=backport-org/integration-test',
30
+ '--sha=16cfd987b82f49a79ebc663506f5d215b7a81c5c',
31
+ '--branch=7.x',
32
+ `--accessToken=${accessToken}`,
33
+ `--dir=${sandboxPath}`,
34
+ '--dry-run',
35
+ ], {
36
+ showOra: true,
37
+ timeoutSeconds: 10,
38
+ });
39
+ // second run: backport should re-create remotes and branches correctly
40
+ expect(output).toMatchInlineSnapshot(`
41
+ "- Initializing...
42
+ ? Select commit Bump to 8.0.0
43
+
44
+ Backporting to 7.x:
45
+ - Pulling latest changes
46
+ ✔ Pulling latest changes
47
+ - Cherry-picking: Bump to 8.0.0
48
+ ✔ Cherry-picking: Bump to 8.0.0
49
+ ✔ Dry run complete"
50
+ `);
51
+ });
52
+ });
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /* eslint-disable no-console */
4
+ const rest_1 = require("@octokit/rest");
5
+ const getDevAccessToken_1 = require("../../private/getDevAccessToken");
6
+ const sandbox_1 = require("../../sandbox");
7
+ const runBackportViaCli_1 = require("./runBackportViaCli");
8
+ jest.setTimeout(15000);
9
+ const accessToken = (0, getDevAccessToken_1.getDevAccessToken)();
10
+ const octokit = new rest_1.Octokit({ auth: accessToken });
11
+ describe('Programatically add new commits', () => {
12
+ it('should backport commits added after the first run', async () => {
13
+ const sandboxPath = (0, sandbox_1.getSandboxPath)({ filename: __filename });
14
+ await (0, sandbox_1.resetSandbox)(sandboxPath);
15
+ // first run: backport should clone the repo
16
+ await (0, runBackportViaCli_1.runBackportViaCli)([
17
+ '--repo=backport-org/repo-with-programatically-added-commits',
18
+ '--pr=1',
19
+ '--branch=7.x',
20
+ `--accessToken=${accessToken}`,
21
+ `--dir=${sandboxPath}`,
22
+ '--dry-run',
23
+ ], { showOra: true });
24
+ const formattedDate = new Date().toLocaleString('da-DK');
25
+ const commitMessage = `Automatically added at ${formattedDate}`;
26
+ const sha = await createAndCommitFile({
27
+ commitMessage,
28
+ files: [
29
+ {
30
+ path: `files/${formattedDate}.md`,
31
+ sha: await createBlob(`# Hello\nSome content added @ ${formattedDate}`),
32
+ },
33
+ ],
34
+ });
35
+ // second run: backport should find and backport the new commit
36
+ const { output } = await (0, runBackportViaCli_1.runBackportViaCli)([
37
+ '--repo=backport-org/repo-with-programatically-added-commits',
38
+ `--sha=${sha}`,
39
+ '--branch=7.x',
40
+ `--accessToken=${accessToken}`,
41
+ `--dir=${sandboxPath}`,
42
+ '--dry-run',
43
+ ], { showOra: true });
44
+ expect(output).toContain(commitMessage);
45
+ expect(output).toContain('Dry run complete');
46
+ });
47
+ });
48
+ async function createAndCommitFile({ commitMessage, files, }) {
49
+ const latestCommitSha = await getLatestCommitSha();
50
+ const treeSha = await createTree(files);
51
+ const commitSha = await createCommit({
52
+ latestCommitSha,
53
+ commitMessage,
54
+ treeSha,
55
+ });
56
+ await updateRef(commitSha);
57
+ return commitSha;
58
+ }
59
+ async function updateRef(sha) {
60
+ try {
61
+ const res = await octokit.rest.git.updateRef({
62
+ owner: 'backport-org',
63
+ repo: 'repo-with-programatically-added-commits',
64
+ ref: 'heads/main',
65
+ sha,
66
+ });
67
+ return res.data;
68
+ }
69
+ catch (e) {
70
+ console.log(e);
71
+ }
72
+ }
73
+ async function createCommit({ latestCommitSha, commitMessage, treeSha, }) {
74
+ const res = await octokit.rest.git.createCommit({
75
+ owner: 'backport-org',
76
+ repo: 'repo-with-programatically-added-commits',
77
+ message: commitMessage,
78
+ parents: [latestCommitSha],
79
+ tree: treeSha,
80
+ });
81
+ return res.data.sha;
82
+ }
83
+ async function createTree(files) {
84
+ const res = await octokit.git.createTree({
85
+ owner: 'backport-org',
86
+ repo: 'repo-with-programatically-added-commits',
87
+ tree: files.map((f) => {
88
+ return {
89
+ path: f.path,
90
+ sha: f.sha,
91
+ mode: '100644',
92
+ type: 'blob',
93
+ };
94
+ }),
95
+ });
96
+ return res.data.sha;
97
+ }
98
+ async function createBlob(content) {
99
+ const res = await octokit.rest.git.createBlob({
100
+ owner: 'backport-org',
101
+ repo: 'repo-with-programatically-added-commits',
102
+ content: content,
103
+ encoding: 'utf-8',
104
+ });
105
+ return res.data.sha;
106
+ }
107
+ async function getLatestCommitSha() {
108
+ const res = await octokit.repos.getBranch({
109
+ owner: 'backport-org',
110
+ repo: 'repo-with-programatically-added-commits',
111
+ branch: 'main',
112
+ });
113
+ return res.data.commit.sha;
114
+ }
@@ -23,7 +23,7 @@ function runBackportViaCli(backportArgs, runBackportOptions = {}) {
23
23
  const cmdArgs = [
24
24
  '--transpile-only',
25
25
  entrypointFile,
26
- '--log-file-path=/dev/null',
26
+ `--log-file-path=${sandbox_1.SANDBOX_PATH}/backport.log`,
27
27
  ...(backportArgs.some((arg) => arg.includes('--dir'))
28
28
  ? []
29
29
  : [`--dir=${sandboxPath}`]),
@@ -70,7 +70,7 @@ function getPromise(proc, runBackportOptions, cmdArgs, chunks) {
70
70
  proc.on('exit', (code) => {
71
71
  postponeTimeout.cancel();
72
72
  if (waitForString) {
73
- reject(`runBackportViaCli exited before finding: ${waitForString}. Output: `);
73
+ reject(`runBackportViaCli exited before finding: ${waitForString}. Output: ${formatChunk(chunks)}`);
74
74
  }
75
75
  else {
76
76
  resolve({ output: formatChunk(chunks), code, keypress });
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const child_process_promisified_1 = require("../../../lib/child-process-promisified");
4
4
  const getDevAccessToken_1 = require("../../private/getDevAccessToken");
5
+ const replaceStringAndLinebreaks_1 = require("../../replaceStringAndLinebreaks");
5
6
  const sandbox_1 = require("../../sandbox");
6
7
  const runBackportViaCli_1 = require("./runBackportViaCli");
7
8
  const accessToken = (0, getDevAccessToken_1.getDevAccessToken)();
@@ -76,7 +77,11 @@ describe('test-that-repo-can-be-cloned', () => {
76
77
  }
77
78
  it('clones using the local repo', async () => {
78
79
  const { output } = await run();
79
- expect(output).toEqual(expect.stringMatching(/100% Cloning repository from .*\/src\/test\/_tmp_sandbox_\/test-that-repo-can-be-cloned.private.test\/source \(one-time operation\)/gm));
80
+ expect((0, replaceStringAndLinebreaks_1.replaceStringAndLinebreaks)({
81
+ haystack: output,
82
+ stringBefore: sourceRepo,
83
+ stringAfter: '<SOURCE_REPO>',
84
+ })).toContain('✔ 100% Cloning repository from <SOURCE_REPO> (one-time operation)');
80
85
  });
81
86
  });
82
87
  });
@@ -0,0 +1,5 @@
1
+ export declare function replaceStringAndLinebreaks({ haystack, stringBefore, stringAfter, }: {
2
+ haystack: string;
3
+ stringBefore: string;
4
+ stringAfter: string;
5
+ }): string;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.replaceStringAndLinebreaks = void 0;
4
+ function replaceStringAndLinebreaks({ haystack, stringBefore, stringAfter, }) {
5
+ const regex = stringBefore.split('').join('\\s?');
6
+ return haystack.replace(new RegExp(regex, 'g'), stringAfter);
7
+ }
8
+ exports.replaceStringAndLinebreaks = replaceStringAndLinebreaks;
@@ -1,3 +1,4 @@
1
+ export declare const SANDBOX_PATH: string;
1
2
  export declare function getSandboxPath({ filename, specname, }: {
2
3
  filename: string;
3
4
  specname?: string;
@@ -26,19 +26,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.resetSandbox = exports.getSandboxPath = void 0;
29
+ exports.resetSandbox = exports.getSandboxPath = exports.SANDBOX_PATH = void 0;
30
+ const os_1 = require("os");
30
31
  const path_1 = __importStar(require("path"));
31
32
  const del_1 = __importDefault(require("del"));
32
33
  const make_dir_1 = __importDefault(require("make-dir"));
33
34
  jest.unmock('make-dir');
34
35
  jest.unmock('del');
36
+ exports.SANDBOX_PATH = `${(0, os_1.homedir)()}/.backport_testing/`;
35
37
  function getSandboxPath({ filename, specname, }) {
36
38
  const baseFilename = getFilenameWithoutExtension(filename);
37
- return (0, path_1.resolve)(`${__dirname}/_tmp_sandbox_/${baseFilename}${specname ? `/${specname}` : ''}`);
39
+ return (0, path_1.resolve)(`${exports.SANDBOX_PATH}/${baseFilename}${specname ? `/${specname}` : ''}`);
38
40
  }
39
41
  exports.getSandboxPath = getSandboxPath;
40
42
  async function resetSandbox(sandboxPath) {
41
- await (0, del_1.default)(sandboxPath);
43
+ if (sandboxPath.length < 30) {
44
+ throw new Error(`sandboxPath "${sandboxPath}" is too short. Reset aborted`);
45
+ }
46
+ await (0, del_1.default)(sandboxPath, { force: true });
42
47
  await (0, make_dir_1.default)(sandboxPath);
43
48
  }
44
49
  exports.resetSandbox = resetSandbox;
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "8.4.1";
1
+ export declare const PACKAGE_VERSION = "8.4.4";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PACKAGE_VERSION = void 0;
4
- exports.PACKAGE_VERSION = '8.4.1';
4
+ exports.PACKAGE_VERSION = '8.4.4';
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "branches",
15
15
  "branching"
16
16
  ],
17
- "version": "8.4.1",
17
+ "version": "8.4.4",
18
18
  "main": "./dist/entrypoint.module.js",
19
19
  "types": "dist/entrypoint.module.d.ts",
20
20
  "bin": {
@@ -30,7 +30,7 @@
30
30
  "lint-and-test": "yarn tsc && yarn lint && yarn test-all",
31
31
  "lint": "echo \"Running lint\" && eslint './**/*.{ts,js}'",
32
32
  "start": "ts-node --transpile-only ./src/entrypoint.cli.ts",
33
- "test-all": "rm -rf src/test/_tmp_sandbox_ && jest --config ./jest.config.all.js",
33
+ "test-all": "jest --config ./jest.config.all.js",
34
34
  "test-mutation": "jest --config ./jest.config.mutation.js",
35
35
  "test-private": "jest --config ./jest.config.private.js",
36
36
  "test": "jest"
@@ -64,12 +64,12 @@
64
64
  },
65
65
  "dependencies": {
66
66
  "@octokit/rest": "^18.12.0",
67
- "axios": "^0.26.1",
67
+ "axios": "^0.27.2",
68
68
  "dedent": "^0.7.0",
69
- "del": "^6.0.0",
70
- "dotenv": "^16.0.0",
69
+ "del": "^6.1.1",
70
+ "dotenv": "^16.0.1",
71
71
  "find-up": "^5.0.0",
72
- "graphql": "^16.4.0",
72
+ "graphql": "^16.5.0",
73
73
  "graphql-tag": "^2.12.6",
74
74
  "inquirer": "^8.2.3",
75
75
  "lodash": "^4.17.21",
@@ -80,36 +80,36 @@
80
80
  "terminal-link": "^2.1.1",
81
81
  "utility-types": "^3.10.0",
82
82
  "winston": "^3.7.2",
83
- "yargs": "^17.4.1",
83
+ "yargs": "^17.5.1",
84
84
  "yargs-parser": "^21.0.1"
85
85
  },
86
86
  "devDependencies": {
87
87
  "@types/core-js": "^2.5.5",
88
88
  "@types/dedent": "^0.7.0",
89
89
  "@types/inquirer": "^8.2.1",
90
- "@types/jest": "^27.4.1",
90
+ "@types/jest": "^27.5.1",
91
91
  "@types/lodash": "^4.14.182",
92
- "@types/node": "^17.0.29",
92
+ "@types/node": "^17.0.35",
93
93
  "@types/safe-json-stringify": "^1.1.2",
94
94
  "@types/yargs": "^17.0.10",
95
95
  "@types/yargs-parser": "^21.0.0",
96
- "@typescript-eslint/eslint-plugin": "^5.21.0",
97
- "@typescript-eslint/parser": "^5.21.0",
98
- "eslint": "^8.14.0",
96
+ "@typescript-eslint/eslint-plugin": "^5.26.0",
97
+ "@typescript-eslint/parser": "^5.26.0",
98
+ "eslint": "^8.16.0",
99
99
  "eslint-config-prettier": "^8.5.0",
100
100
  "eslint-plugin-import": "^2.26.0",
101
- "eslint-plugin-jest": "^26.1.5",
101
+ "eslint-plugin-jest": "^26.2.2",
102
102
  "eslint-plugin-prettier": "^4.0.0",
103
- "graphql-config": "^4.3.0",
104
- "husky": "^7.0.4",
105
- "jest": "^27.5.1",
103
+ "graphql-config": "^4.3.1",
104
+ "husky": "^8.0.1",
105
+ "jest": "^28.1.0",
106
106
  "jest-snapshot-serializer-ansi": "^1.0.0",
107
- "lint-staged": "^12.4.1",
107
+ "lint-staged": "^12.4.2",
108
108
  "nock": "^13.2.4",
109
109
  "prettier": "^2.6.2",
110
110
  "strip-ansi": "^6.0.1",
111
- "ts-jest": "^27.1.4",
112
- "ts-node": "^10.7.0",
113
- "typescript": "^4.6.3"
111
+ "ts-jest": "^28.0.3",
112
+ "ts-node": "^10.8.0",
113
+ "typescript": "^4.7.2"
114
114
  }
115
115
  }