Skip to content

Commit

Permalink
Bump deps (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenlouv authored Sep 25, 2022
1 parent 33e3177 commit 8d4c45d
Show file tree
Hide file tree
Showing 40 changed files with 1,074 additions and 1,016 deletions.
2 changes: 1 addition & 1 deletion docs/config-file-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Default: `false`

#### `autoMerge`

Automatically merge the backport pull request when `true`.
Automatically merge the backport pull request when `true`.

Default: `false`

Expand Down
8 changes: 0 additions & 8 deletions jest.config.all.js

This file was deleted.

10 changes: 10 additions & 0 deletions jest.config.all.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import baseConfig from './jest.config';

const config = {
...baseConfig,

modulePathIgnorePatterns: [],
testSequencer: './jest.testSequencer.js',
};

export default config;
9 changes: 5 additions & 4 deletions jest.config.mutation.js → jest.config.mutation.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const config = require('./jest.config');
import baseConfig from './jest.config';

module.exports = {
...config,
const config = {
...baseConfig,

// only include "mutation" tests that cannot run on in parallel (like they are on CI) because they mutate shared state
testRegex: ['.*.mutation.test.ts$'],
modulePathIgnorePatterns: [],
};

export default config;
9 changes: 5 additions & 4 deletions jest.config.private.js → jest.config.private.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const config = require('./jest.config');
import baseConfig from './jest.config';

module.exports = {
...config,
const config = {
...baseConfig,

// only include (private) tests that cannot run on CI because they require credentials and thus exclude external contributors
testRegex: ['.*.private.test.ts$'],
modulePathIgnorePatterns: [],
};

export default config;
14 changes: 8 additions & 6 deletions jest.config.js → jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import type { JestConfigWithTsJest } from 'ts-jest';

// ensure timezone is always in UTC
process.env.TZ = 'UTC';

module.exports = {
const baseConfig: JestConfigWithTsJest = {
transform: {
'^.+\\.ts?$': ['ts-jest', { diagnostics: false }],
},
snapshotSerializers: ['jest-snapshot-serializer-ansi'],
setupFiles: ['./src/test/setupFiles/automatic-mocks.ts'],
preset: 'ts-jest',
Expand All @@ -12,9 +17,6 @@ module.exports = {
// exclude "mutation" tests that cannot run on in parallel (like they are on CI) because they mutate shared state
modulePathIgnorePatterns: ['.*.private.test.ts$', '.*.mutation.test.ts$'],
moduleFileExtensions: ['ts', 'js', 'json'],
globals: {
'ts-jest': {
diagnostics: false,
},
},
};

export default baseConfig;
42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"lint-and-test": "yarn tsc && yarn lint && yarn test-all",
"lint": "echo \"Running lint\" && eslint './**/*.{ts,js}'",
"start": "ts-node --transpile-only ./src/entrypoint.cli.ts",
"test-all": "jest --config ./jest.config.all.js",
"test-mutation": "jest --config ./jest.config.mutation.js",
"test-private": "jest --config ./jest.config.private.js",
"test-all": "jest --config ./jest.config.all.ts",
"test-mutation": "jest --config ./jest.config.mutation.ts",
"test-private": "jest --config ./jest.config.private.ts",
"test": "jest"
},
"lint-staged": {
Expand Down Expand Up @@ -63,13 +63,13 @@
"node": ">=16.0.0"
},
"dependencies": {
"@octokit/rest": "^19.0.3",
"@octokit/rest": "^19.0.4",
"axios": "^0.27.2",
"dedent": "^0.7.0",
"del": "^6.1.1",
"dotenv": "^16.0.1",
"dotenv": "^16.0.2",
"find-up": "^5.0.0",
"graphql": "^16.5.0",
"graphql": "^16.6.0",
"graphql-tag": "^2.12.6",
"inquirer": "^8.2.3",
"lodash": "^4.17.21",
Expand All @@ -79,37 +79,37 @@
"strip-json-comments": "^3.1.1",
"terminal-link": "^2.1.1",
"utility-types": "^3.10.0",
"winston": "^3.8.1",
"winston": "^3.8.2",
"yargs": "^17.5.1",
"yargs-parser": "^21.0.1"
"yargs-parser": "^21.1.1"
},
"devDependencies": {
"@types/core-js": "^2.5.5",
"@types/dedent": "^0.7.0",
"@types/inquirer": "^8.2.1",
"@types/jest": "^28.1.6",
"@types/lodash": "^4.14.182",
"@types/node": "^18.6.3",
"@types/inquirer": "^9.0.1",
"@types/jest": "^29.0.3",
"@types/lodash": "^4.14.185",
"@types/node": "^18.7.21",
"@types/safe-json-stringify": "^1.1.2",
"@types/yargs": "^17.0.10",
"@types/yargs": "^17.0.13",
"@types/yargs-parser": "^21.0.0",
"@typescript-eslint/eslint-plugin": "^5.32.0",
"@typescript-eslint/parser": "^5.32.0",
"eslint": "^8.21.0",
"@typescript-eslint/eslint-plugin": "^5.38.0",
"@typescript-eslint/parser": "^5.38.0",
"eslint": "^8.24.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.7.0",
"eslint-plugin-jest": "^27.0.4",
"eslint-plugin-prettier": "^4.2.1",
"graphql-config": "^4.3.3",
"graphql-config": "^4.3.5",
"husky": "^8.0.1",
"jest": "^28.1.3",
"jest": "^29.0.3",
"jest-snapshot-serializer-ansi": "^1.0.0",
"lint-staged": "^13.0.3",
"nock": "^13.2.9",
"prettier": "^2.7.1",
"strip-ansi": "^6.0.1",
"ts-jest": "^28.0.7",
"ts-jest": "^29.0.2",
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
"typescript": "^4.8.3"
}
}
Loading

0 comments on commit 8d4c45d

Please sign in to comment.