Skip to content

Commit

Permalink
chore(deps): update jest (#1775)
Browse files Browse the repository at this point in the history
* chore(deps): update jest

* fix: add missing jsdom and fix jest-extented setup

* fix: renamed rule

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marco Vettorello <[email protected]>
  • Loading branch information
renovate[bot] and markov00 authored Aug 2, 2022
1 parent eaf0d59 commit 65e3527
Show file tree
Hide file tree
Showing 7 changed files with 1,451 additions and 1,101 deletions.
4 changes: 2 additions & 2 deletions github_bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
},
"devDependencies": {
"@types/express": "^4.17.9",
"@types/jest": "^26.0.19",
"@types/jest": "^28.1.6",
"@types/node": "^16",
"@types/tmp": "^0.2.3",
"dotenv": "^16.0.0",
"eventsource": "^1.0.7",
"nock": "^13.0.5",
"nodemon": "^2.0.16",
"smee-client": "^1.2.3",
"ts-jest": "^26.5.6",
"ts-jest": "^28.0.7",
"ts-node": "^10.7.0",
"typescript": "^4.7.4"
},
Expand Down
190 changes: 109 additions & 81 deletions github_bot/yarn.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions integration/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const eachRotation = {
return it.each<[string, Rotation]>(rotationCases)(title, (_, r) => fn(r));
},
describe(fn: (rotation: Rotation) => any, title = 'rotation - %s') {
// eslint-disable-next-line jest/valid-title, jest/valid-describe
// eslint-disable-next-line jest/valid-title, jest/valid-describe-callback
return describe.each<[string, Rotation]>(rotationCases)(title, (_, r) => fn(r));
},
};
Expand All @@ -157,7 +157,7 @@ export const eachTheme = {
return it.each<ThemeId>(themeIds)(title, (theme) => fn(theme, `globals=theme:${theme}`));
},
describe(fn: (theme: ThemeId, urlParam: string) => any, title = 'theme - %s') {
// eslint-disable-next-line jest/valid-title, jest/valid-describe
// eslint-disable-next-line jest/valid-title, jest/valid-describe-callback
return describe.each<ThemeId>(themeIds)(title, (theme) => fn(theme, `globals=theme:${theme}`));
},
};
Expand Down
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ module.exports = {
testMatch: ['**/?(*.)+(test).[jt]s?(x)'],
roots: ['<rootDir>/packages/charts/src'],
preset: 'ts-jest',
testEnvironment: 'jsdom',
setupFilesAfterEnv: [
'<rootDir>/scripts/setup_enzyme.ts',
'<rootDir>/scripts/custom_matchers.mock.ts',
'jest-extended',
'jest-extended/all',
],
coveragePathIgnorePatterns: [
'<rootDir>/packages/charts/src/mocks',
Expand Down
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@
"@types/enzyme": "^3.9.0",
"@types/enzyme-adapter-react-16": "^1.0.5",
"@types/expect-puppeteer": "^4.4.5",
"@types/jest": "^26.0.19",
"@types/jest-environment-puppeteer": "^4.4.1",
"@types/jest-image-snapshot": "^4.3.1",
"@types/jest": "^28.1.6",
"@types/jest-environment-puppeteer": "^5.0.2",
"@types/jest-image-snapshot": "^5.1.0",
"@types/lodash": "^4.14.121",
"@types/luxon": "^1.25.0",
"@types/marked": "^2.0.1",
Expand Down Expand Up @@ -130,20 +130,21 @@
"eslint-plugin-file-header": "^0.0.1",
"eslint-plugin-header": "^3.1.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.1.3",
"eslint-plugin-jest": "^26.7.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-unicorn": "^25.0.1",
"html-webpack-plugin": "^4.5.2",
"jest": "^26.6.3",
"jest-extended": "^0.11.5",
"jest-image-snapshot": "^4.5.1",
"jest-matcher-utils": "^26.6.2",
"jest-puppeteer": "5.0.4",
"jest": "^28.1.3",
"jest-extended": "^3.0.1",
"jest-image-snapshot": "^5.1.0",
"jest-matcher-utils": "^28.1.3",
"jest-puppeteer": "6.1.1",
"jest-puppeteer-docker": "^1.4.2",
"jest-environment-jsdom": "^28.1.3",
"lerna": "^4.0.0",
"lint-staged": "^10.5.3",
"lodash": "^4.17.15",
Expand Down Expand Up @@ -172,7 +173,7 @@
"semantic-release-slack-bot": "^3.5.3",
"slugify": "^1.5.0",
"speed-measure-webpack-plugin": "^1.5.0",
"ts-jest": "^26.5.6",
"ts-jest": "^28.0.7",
"ts-prune": "^0.10.3",
"typescript": "^4.7.4",
"webpack": "^4.46.0",
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 65e3527

Please sign in to comment.