- update dependencies
- upgrade octokit/rest - attempt to fix jest with new octokit version
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
import {mergeConfiguration, parseConfiguration, resolveConfiguration} from '../src/utils.js'
|
import {mergeConfiguration, parseConfiguration, resolveConfiguration} from '../src/utils.js'
|
||||||
import { clear } from "../src/transform.js";
|
import { clear } from "../src/transform.js";
|
||||||
|
import {jest} from '@jest/globals'
|
||||||
|
|
||||||
jest.setTimeout(180000)
|
jest.setTimeout(180000)
|
||||||
clear()
|
clear()
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import {mergeConfiguration, resolveConfiguration} from '../../src/utils.js'
|
import {mergeConfiguration, resolveConfiguration} from '../../src/utils.js'
|
||||||
import {ReleaseNotesBuilder} from '../../src/releaseNotesBuilder.js'
|
import {ReleaseNotesBuilder} from '../../src/releaseNotesBuilder.js'
|
||||||
import {GithubRepository} from '../../src/repositories/GithubRepository.js'
|
import {GithubRepository} from '../../src/repositories/GithubRepository.js'
|
||||||
|
import {jest} from '@jest/globals'
|
||||||
|
|
||||||
jest.setTimeout(180000)
|
jest.setTimeout(180000)
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import {mergeConfiguration, resolveConfiguration} from '../../src/utils.js'
|
|||||||
import {ReleaseNotesBuilder} from '../../src/releaseNotesBuilder.js'
|
import {ReleaseNotesBuilder} from '../../src/releaseNotesBuilder.js'
|
||||||
import {GiteaRepository} from '../../src/repositories/GiteaRepository.js'
|
import {GiteaRepository} from '../../src/repositories/GiteaRepository.js'
|
||||||
import {clear} from '../../src/transform.js'
|
import {clear} from '../../src/transform.js'
|
||||||
|
import {jest} from '@jest/globals'
|
||||||
|
|
||||||
jest.setTimeout(180000)
|
jest.setTimeout(180000)
|
||||||
clear()
|
clear()
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import {Options, pullData} from '../../src/pr-collector/prCollector.js'
|
|||||||
import {GiteaRepository} from '../../src/repositories/GiteaRepository.js'
|
import {GiteaRepository} from '../../src/repositories/GiteaRepository.js'
|
||||||
import {clear} from '../../src/transform.js'
|
import {clear} from '../../src/transform.js'
|
||||||
import {ReleaseNotesOptions} from '../../src/releaseNotesBuilder.js'
|
import {ReleaseNotesOptions} from '../../src/releaseNotesBuilder.js'
|
||||||
|
import {jest} from '@jest/globals'
|
||||||
|
|
||||||
jest.setTimeout(180000)
|
jest.setTimeout(180000)
|
||||||
clear()
|
clear()
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import * as process from 'process'
|
|||||||
import * as cp from 'child_process'
|
import * as cp from 'child_process'
|
||||||
import * as fs from 'fs'
|
import * as fs from 'fs'
|
||||||
import {clear} from '../src/transform.js'
|
import {clear} from '../src/transform.js'
|
||||||
|
import {jest} from '@jest/globals'
|
||||||
|
|
||||||
jest.setTimeout(180000)
|
jest.setTimeout(180000)
|
||||||
clear()
|
clear()
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import {transformStringToValue, validateRegex} from '../src/pr-collector/regexUtils.js'
|
import {transformStringToValue, validateRegex} from '../src/pr-collector/regexUtils.js'
|
||||||
import {Regex} from '../src/pr-collector/types.js'
|
import {Regex} from '../src/pr-collector/types.js'
|
||||||
import {clear} from '../src/transform.js'
|
import {clear} from '../src/transform.js'
|
||||||
|
import {jest} from '@jest/globals'
|
||||||
|
|
||||||
jest.setTimeout(180000)
|
jest.setTimeout(180000)
|
||||||
clear()
|
clear()
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import {mergeConfiguration, resolveConfiguration} from '../src/utils.js'
|
|||||||
import {ReleaseNotesBuilder} from '../src/releaseNotesBuilder.js'
|
import {ReleaseNotesBuilder} from '../src/releaseNotesBuilder.js'
|
||||||
import {GithubRepository} from '../src/repositories/GithubRepository.js'
|
import {GithubRepository} from '../src/repositories/GithubRepository.js'
|
||||||
import {clear} from '../src/transform.js'
|
import {clear} from '../src/transform.js'
|
||||||
|
import {jest} from '@jest/globals'
|
||||||
|
|
||||||
jest.setTimeout(180000)
|
jest.setTimeout(180000)
|
||||||
clear()
|
clear()
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import {Options, pullData} from '../src/pr-collector/prCollector.js'
|
|||||||
import {GithubRepository} from '../src/repositories/GithubRepository.js'
|
import {GithubRepository} from '../src/repositories/GithubRepository.js'
|
||||||
import {clear} from '../src/transform.js'
|
import {clear} from '../src/transform.js'
|
||||||
import {ReleaseNotesOptions} from '../src/releaseNotesBuilder.js'
|
import {ReleaseNotesOptions} from '../src/releaseNotesBuilder.js'
|
||||||
|
import {jest} from '@jest/globals'
|
||||||
|
|
||||||
jest.setTimeout(180000)
|
jest.setTimeout(180000)
|
||||||
clear()
|
clear()
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import {TagResolver} from '../src/configuration.js'
|
|||||||
import {validateRegex} from '../src/pr-collector/regexUtils.js'
|
import {validateRegex} from '../src/pr-collector/regexUtils.js'
|
||||||
import {filterTags, prepareAndSortTags, TagInfo, transformTags} from '../src/pr-collector/tags.js'
|
import {filterTags, prepareAndSortTags, TagInfo, transformTags} from '../src/pr-collector/tags.js'
|
||||||
import {clear} from '../src/transform.js'
|
import {clear} from '../src/transform.js'
|
||||||
|
import {jest} from '@jest/globals'
|
||||||
|
|
||||||
jest.setTimeout(180000)
|
jest.setTimeout(180000)
|
||||||
clear()
|
clear()
|
||||||
|
|||||||
@@ -5,7 +5,8 @@ import {PullRequestInfo} from '../src/pr-collector/pullRequests.js'
|
|||||||
import {DefaultDiffInfo} from '../src/pr-collector/commits.js'
|
import {DefaultDiffInfo} from '../src/pr-collector/commits.js'
|
||||||
import {GithubRepository} from '../src/repositories/GithubRepository.js'
|
import {GithubRepository} from '../src/repositories/GithubRepository.js'
|
||||||
import {clear} from '../src/transform.js'
|
import {clear} from '../src/transform.js'
|
||||||
import { buildChangelogTest } from "./utils.js";
|
import { buildChangelogTest } from "./src/utils.js";
|
||||||
|
import {jest} from '@jest/globals'
|
||||||
|
|
||||||
jest.setTimeout(180000)
|
jest.setTimeout(180000)
|
||||||
clear()
|
clear()
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ import {DefaultConfiguration} from '../src/configuration.js'
|
|||||||
import {PullRequestInfo} from '../src/pr-collector/pullRequests.js'
|
import {PullRequestInfo} from '../src/pr-collector/pullRequests.js'
|
||||||
import {GithubRepository} from '../src/repositories/GithubRepository.js'
|
import {GithubRepository} from '../src/repositories/GithubRepository.js'
|
||||||
import {clear} from '../src/transform.js'
|
import {clear} from '../src/transform.js'
|
||||||
import {buildChangelogTest, buildPullRequeset} from './utils.js'
|
import {buildChangelogTest, buildPullRequeset} from './src/utils.js'
|
||||||
|
import {jest} from '@jest/globals'
|
||||||
|
|
||||||
jest.setTimeout(180000)
|
jest.setTimeout(180000)
|
||||||
clear()
|
clear()
|
||||||
|
|||||||
+7
-7
@@ -1,12 +1,12 @@
|
|||||||
// jest.config.js
|
// jest.config.js
|
||||||
import { createJsWithTsEsmPreset } from "ts-jest";
|
|
||||||
|
import { createDefaultEsmPreset } from "ts-jest";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
clearMocks: true,
|
|
||||||
testEnvironment: "node",
|
testEnvironment: "node",
|
||||||
testMatch: ["**/*.test.ts"],
|
extensionsToTreatAsEsm: [".ts"],
|
||||||
testRunner: "jest-circus/runner",
|
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
"(.+)\\.js": "$1",
|
"(.+)\\.js": "$1"
|
||||||
},
|
},
|
||||||
...createJsWithTsEsmPreset(),
|
...createDefaultEsmPreset()
|
||||||
}
|
};
|
||||||
Generated
+836
-1030
File diff suppressed because it is too large
Load Diff
+10
-10
@@ -12,10 +12,10 @@
|
|||||||
"format-fix": "eslint --fix src/**.ts",
|
"format-fix": "eslint --fix src/**.ts",
|
||||||
"lint": "eslint src/**/*.ts",
|
"lint": "eslint src/**/*.ts",
|
||||||
"package": "ncc build --source-map --license licenses.txt",
|
"package": "ncc build --source-map --license licenses.txt",
|
||||||
"test": "jest",
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
|
||||||
"test-github": "jest __tests__/*.test.ts",
|
"test-github": "NODE_OPTIONS=--experimental-vm-modules jest __tests__/*.test.ts",
|
||||||
"test-gitea": "jest __tests__/gitea/*.test.ts",
|
"test-gitea": "NODE_OPTIONS=--experimental-vm-modules jest __tests__/gitea/*.test.ts",
|
||||||
"test-demo": "jest __tests__/demo/*.test.ts",
|
"test-demo": "NODE_OPTIONS=--experimental-vm-modules jest __tests__/demo/*.test.ts",
|
||||||
"all": "npm run build && npm run format && npm run lint && npm run package && npm run test-github"
|
"all": "npm run build && npm run format && npm run lint && npm run package && npm run test-github"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
@@ -40,22 +40,22 @@
|
|||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.0",
|
||||||
"@octokit/rest": "^20.1.1",
|
"@octokit/rest": "^21.1.0",
|
||||||
"gitea-js": "^1.23.0",
|
"gitea-js": "^1.23.0",
|
||||||
"globals": "^15.14.0",
|
"globals": "^15.14.0",
|
||||||
"https-proxy-agent": "^7.0.6",
|
"https-proxy-agent": "^7.0.6",
|
||||||
"moment": "^2.30.1",
|
"moment": "^2.30.1",
|
||||||
"semver": "^7.6.3"
|
"semver": "^7.7.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^29.5.14",
|
"@types/jest": "^29.5.14",
|
||||||
"@types/node": "^22.10.10",
|
"@types/node": "^22.12.0",
|
||||||
"@types/semver": "^7.5.8",
|
"@types/semver": "^7.5.8",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.21.0",
|
"@typescript-eslint/eslint-plugin": "^8.22.0",
|
||||||
"@typescript-eslint/parser": "^8.21.0",
|
"@typescript-eslint/parser": "^8.22.0",
|
||||||
"@vercel/ncc": "^0.38.3",
|
"@vercel/ncc": "^0.38.3",
|
||||||
"eslint": "^9.19.0",
|
"eslint": "^9.19.0",
|
||||||
"eslint-plugin-github": "^5.1.5",
|
"eslint-plugin-github": "^5.1.7",
|
||||||
"eslint-plugin-import": "^2.31.0",
|
"eslint-plugin-import": "^2.31.0",
|
||||||
"eslint-plugin-jest": "^28.11.0",
|
"eslint-plugin-jest": "^28.11.0",
|
||||||
"eslint-plugin-prettier": "^5.2.3",
|
"eslint-plugin-prettier": "^5.2.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user