Skip to content

Commit

Permalink
Downgrade jest version to 28 to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matus-tomlein committed Nov 6, 2024
1 parent 3207547 commit 853d396
Show file tree
Hide file tree
Showing 42 changed files with 1,127 additions and 938 deletions.
1,760 changes: 972 additions & 788 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion common/config/rush/repo-state.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// DO NOT MODIFY THIS FILE MANUALLY BUT DO COMMIT IT. It is generated and used by Rush.
{
"pnpmShrinkwrapHash": "198df4bff51d6971dfe31a0dc821da2625a97ad9",
"pnpmShrinkwrapHash": "92e47003e2ad1b5456251728695c6b059df935d5",
"preferredVersionsHash": "bf21a9e8fbc5a3846fb05b4fa0859e0917b2202f"
}
10 changes: 5 additions & 5 deletions libraries/browser-tracker-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@
"@ampproject/rollup-plugin-closure-compiler": "~0.27.0",
"@rollup/plugin-commonjs": "~21.0.2",
"@rollup/plugin-node-resolve": "~13.1.3",
"@types/jest": "~29.5.14",
"@types/jsdom": "~16.2.14",
"@types/jest": "~28.1.1",
"@types/jsdom": "~21.1.7",
"@types/sha1": "~1.1.3",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "~5.15.0",
"@typescript-eslint/parser": "~5.15.0",
"eslint": "~8.11.0",
"jest": "~29.7.0",
"jest-environment-jsdom": "~29.7.0",
"jest": "~28.1.3",
"jest-environment-jsdom": "~28.1.3",
"jest-environment-jsdom-global": "~4.0.0",
"jest-standard-reporter": "~2.0.0",
"rollup": "~2.70.1",
"rollup-plugin-cleanup": "~3.2.1",
"rollup-plugin-license": "~2.6.1",
"rollup-plugin-terser": "~7.0.2",
"rollup-plugin-ts": "~2.0.5",
"ts-jest": "~29.2.5",
"ts-jest": "~28.0.8",
"typescript": "~4.6.2",
"@testing-library/dom": "~9.3.1",
"whatwg-fetch": "~3.6.20"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('Cross-domain linking: ', () => {
const standardDate = new Date(2023, 1, 1);

beforeAll(() => {
jest.useFakeTimers('modern');
jest.useFakeTimers();
jest.setSystemTime(standardDate);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jest.spyOn(uuid, 'v4').mockReturnValue(MOCK_UUID);

import { createTestIdCookie, createTestSessionIdCookie, createTracker } from '../helpers';

jest.useFakeTimers('modern');
jest.useFakeTimers();

describe('Tracker API: ', () => {
let cookieJar: string;
Expand Down
10 changes: 5 additions & 5 deletions plugins/browser-plugin-ad-tracking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
"@ampproject/rollup-plugin-closure-compiler": "~0.27.0",
"@rollup/plugin-commonjs": "~21.0.2",
"@rollup/plugin-node-resolve": "~13.1.3",
"@types/jest": "~29.5.14",
"@types/jsdom": "~16.2.14",
"@types/jest": "~28.1.1",
"@types/jsdom": "~21.1.7",
"@types/lodash": "~4.14.180",
"@typescript-eslint/eslint-plugin": "~5.15.0",
"@typescript-eslint/parser": "~5.15.0",
"eslint": "~8.11.0",
"jest": "~29.7.0",
"jest-environment-jsdom": "~29.7.0",
"jest": "~28.1.3",
"jest-environment-jsdom": "~28.1.3",
"jest-environment-jsdom-global": "~4.0.0",
"jest-standard-reporter": "~2.0.0",
"lodash": "~4.17.21",
Expand All @@ -46,7 +46,7 @@
"rollup-plugin-license": "~2.6.1",
"rollup-plugin-terser": "~7.0.2",
"rollup-plugin-ts": "~2.0.5",
"ts-jest": "~29.2.5",
"ts-jest": "~28.0.8",
"typescript": "~4.6.2"
},
"peerDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions plugins/browser-plugin-button-click-tracking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
"@ampproject/rollup-plugin-closure-compiler": "~0.27.0",
"@rollup/plugin-commonjs": "~21.0.2",
"@rollup/plugin-node-resolve": "~13.1.3",
"@types/jest": "~29.5.14",
"@types/jsdom": "~16.2.14",
"@types/jest": "~28.1.1",
"@types/jsdom": "~21.1.7",
"@types/lodash": "~4.14.180",
"@typescript-eslint/eslint-plugin": "~5.15.0",
"@typescript-eslint/parser": "~5.15.0",
"eslint": "~8.11.0",
"jest": "~29.7.0",
"jest-environment-jsdom": "~29.7.0",
"jest": "~28.1.3",
"jest-environment-jsdom": "~28.1.3",
"jest-environment-jsdom-global": "~4.0.0",
"jest-standard-reporter": "~2.0.0",
"lodash": "~4.17.21",
Expand All @@ -46,7 +46,7 @@
"rollup-plugin-license": "~2.6.1",
"rollup-plugin-terser": "~7.0.2",
"rollup-plugin-ts": "~2.0.5",
"ts-jest": "~29.2.5",
"ts-jest": "~28.0.8",
"typescript": "~4.6.2"
},
"peerDependencies": {
Expand Down
1 change: 1 addition & 0 deletions plugins/browser-plugin-client-hints/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
preset: 'ts-jest',
reporters: ['jest-standard-reporter'],
setupFilesAfterEnv: ['../../setupTestGlobals.ts'],
testEnvironment: 'jest-environment-jsdom-global',
};
10 changes: 5 additions & 5 deletions plugins/browser-plugin-client-hints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@
"@rollup/plugin-commonjs": "~21.0.2",
"@rollup/plugin-node-resolve": "~13.1.3",
"@snowplow/tracker-core": "workspace:*",
"@types/jest": "~29.5.14",
"@types/jsdom": "~16.2.14",
"@types/jest": "~28.1.1",
"@types/jsdom": "~21.1.7",
"@typescript-eslint/eslint-plugin": "~5.15.0",
"@typescript-eslint/parser": "~5.15.0",
"eslint": "~8.11.0",
"jest": "~29.7.0",
"jest-environment-jsdom": "~29.7.0",
"jest": "~28.1.3",
"jest-environment-jsdom": "~28.1.3",
"jest-environment-jsdom-global": "~4.0.0",
"jest-standard-reporter": "~2.0.0",
"rollup": "~2.70.1",
"rollup-plugin-cleanup": "~3.2.1",
"rollup-plugin-license": "~2.6.1",
"rollup-plugin-terser": "~7.0.2",
"rollup-plugin-ts": "~2.0.5",
"ts-jest": "~29.2.5",
"ts-jest": "~28.0.8",
"typescript": "~4.6.2"
},
"peerDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions plugins/browser-plugin-debugger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@
"@ampproject/rollup-plugin-closure-compiler": "~0.27.0",
"@rollup/plugin-commonjs": "~21.0.2",
"@rollup/plugin-node-resolve": "~13.1.3",
"@types/jest": "~29.5.14",
"@types/jsdom": "~16.2.14",
"@types/jest": "~28.1.1",
"@types/jsdom": "~21.1.7",
"@types/randomcolor": "~0.5.5",
"@typescript-eslint/eslint-plugin": "~5.15.0",
"@typescript-eslint/parser": "~5.15.0",
"eslint": "~8.11.0",
"jest": "~29.7.0",
"jest-environment-jsdom": "~29.7.0",
"jest": "~28.1.3",
"jest-environment-jsdom": "~28.1.3",
"jest-environment-jsdom-global": "~4.0.0",
"jest-standard-reporter": "~2.0.0",
"rollup": "~2.70.1",
"rollup-plugin-cleanup": "~3.2.1",
"rollup-plugin-license": "~2.6.1",
"rollup-plugin-terser": "~7.0.2",
"rollup-plugin-ts": "~2.0.5",
"ts-jest": "~29.2.5",
"ts-jest": "~28.0.8",
"typescript": "~4.6.2"
},
"peerDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions plugins/browser-plugin-enhanced-consent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
"@ampproject/rollup-plugin-closure-compiler": "~0.27.0",
"@rollup/plugin-commonjs": "~21.0.2",
"@rollup/plugin-node-resolve": "~13.1.3",
"@types/jest": "~29.5.14",
"@types/jsdom": "~16.2.14",
"@types/jest": "~28.1.1",
"@types/jsdom": "~21.1.7",
"@types/lodash": "~4.14.180",
"@typescript-eslint/eslint-plugin": "~5.15.0",
"@typescript-eslint/parser": "~5.15.0",
"eslint": "~8.11.0",
"jest": "~29.7.0",
"jest-environment-jsdom": "~29.7.0",
"jest": "~28.1.3",
"jest-environment-jsdom": "~28.1.3",
"jest-environment-jsdom-global": "~4.0.0",
"jest-standard-reporter": "~2.0.0",
"lodash": "~4.17.21",
Expand All @@ -45,7 +45,7 @@
"rollup-plugin-license": "~2.6.1",
"rollup-plugin-terser": "~7.0.2",
"rollup-plugin-ts": "~2.0.5",
"ts-jest": "~29.2.5",
"ts-jest": "~28.0.8",
"typescript": "~4.6.2"
},
"peerDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions plugins/browser-plugin-enhanced-ecommerce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
"@ampproject/rollup-plugin-closure-compiler": "~0.27.0",
"@rollup/plugin-commonjs": "~21.0.2",
"@rollup/plugin-node-resolve": "~13.1.3",
"@types/jest": "~29.5.14",
"@types/jsdom": "~16.2.14",
"@types/jest": "~28.1.1",
"@types/jsdom": "~21.1.7",
"@types/lodash": "~4.14.180",
"@typescript-eslint/eslint-plugin": "~5.15.0",
"@typescript-eslint/parser": "~5.15.0",
"eslint": "~8.11.0",
"jest": "~29.7.0",
"jest-environment-jsdom": "~29.7.0",
"jest": "~28.1.3",
"jest-environment-jsdom": "~28.1.3",
"jest-environment-jsdom-global": "~4.0.0",
"jest-standard-reporter": "~2.0.0",
"lodash": "~4.17.21",
Expand All @@ -46,7 +46,7 @@
"rollup-plugin-license": "~2.6.1",
"rollup-plugin-terser": "~7.0.2",
"rollup-plugin-ts": "~2.0.5",
"ts-jest": "~29.2.5",
"ts-jest": "~28.0.8",
"typescript": "~4.6.2"
},
"peerDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions plugins/browser-plugin-error-tracking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
"@ampproject/rollup-plugin-closure-compiler": "~0.27.0",
"@rollup/plugin-commonjs": "~21.0.2",
"@rollup/plugin-node-resolve": "~13.1.3",
"@types/jest": "~29.5.14",
"@types/jsdom": "~16.2.14",
"@types/jest": "~28.1.1",
"@types/jsdom": "~21.1.7",
"@types/lodash": "~4.14.180",
"@typescript-eslint/eslint-plugin": "~5.15.0",
"@typescript-eslint/parser": "~5.15.0",
"eslint": "~8.11.0",
"jest": "~29.7.0",
"jest-environment-jsdom": "~29.7.0",
"jest": "~28.1.3",
"jest-environment-jsdom": "~28.1.3",
"jest-environment-jsdom-global": "~4.0.0",
"jest-standard-reporter": "~2.0.0",
"lodash": "~4.17.21",
Expand All @@ -46,7 +46,7 @@
"rollup-plugin-license": "~2.6.1",
"rollup-plugin-terser": "~7.0.2",
"rollup-plugin-ts": "~2.0.5",
"ts-jest": "~29.2.5",
"ts-jest": "~28.0.8",
"typescript": "~4.6.2"
},
"peerDependencies": {
Expand Down
1 change: 1 addition & 0 deletions plugins/browser-plugin-event-specifications/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
preset: 'ts-jest',
reporters: ['jest-standard-reporter'],
setupFilesAfterEnv: ['../../setupTestGlobals.ts'],
testEnvironment: 'jest-environment-jsdom-global',
};
10 changes: 5 additions & 5 deletions plugins/browser-plugin-event-specifications/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@
"@ampproject/rollup-plugin-closure-compiler": "~0.27.0",
"@rollup/plugin-commonjs": "~21.0.2",
"@rollup/plugin-node-resolve": "~13.1.3",
"@types/jest": "~29.5.14",
"@types/jsdom": "~16.2.14",
"@types/jest": "~28.1.1",
"@types/jsdom": "~21.1.7",
"@typescript-eslint/eslint-plugin": "~5.15.0",
"@typescript-eslint/parser": "~5.15.0",
"eslint": "~8.11.0",
"jest": "~29.7.0",
"jest-environment-jsdom": "~29.7.0",
"jest": "~28.1.3",
"jest-environment-jsdom": "~28.1.3",
"jest-environment-jsdom-global": "~4.0.0",
"jest-standard-reporter": "~2.0.0",
"rollup": "~2.70.1",
"rollup-plugin-cleanup": "~3.2.1",
"rollup-plugin-license": "~2.6.1",
"rollup-plugin-terser": "~7.0.2",
"rollup-plugin-ts": "~2.0.5",
"ts-jest": "~29.2.5",
"ts-jest": "~28.0.8",
"typescript": "~4.6.2"
},
"peerDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions plugins/browser-plugin-focalmeter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@
"@ampproject/rollup-plugin-closure-compiler": "~0.27.0",
"@rollup/plugin-commonjs": "~21.0.2",
"@rollup/plugin-node-resolve": "~13.1.3",
"@types/jest": "~29.5.14",
"@types/jsdom": "~16.2.14",
"@types/jest": "~28.1.1",
"@types/jsdom": "~21.1.7",
"@typescript-eslint/eslint-plugin": "~5.15.0",
"@typescript-eslint/parser": "~5.15.0",
"eslint": "~8.11.0",
"jest": "~29.7.0",
"jest-environment-jsdom": "~29.7.0",
"jest": "~28.1.3",
"jest-environment-jsdom": "~28.1.3",
"jest-environment-jsdom-global": "~4.0.0",
"jest-standard-reporter": "~2.0.0",
"rollup": "~2.70.1",
"rollup-plugin-cleanup": "~3.2.1",
"rollup-plugin-license": "~2.6.1",
"rollup-plugin-terser": "~7.0.2",
"rollup-plugin-ts": "~2.0.5",
"ts-jest": "~29.2.5",
"ts-jest": "~28.0.8",
"typescript": "~4.6.2"
},
"peerDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions plugins/browser-plugin-form-tracking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@
"@ampproject/rollup-plugin-closure-compiler": "~0.27.0",
"@rollup/plugin-commonjs": "~21.0.2",
"@rollup/plugin-node-resolve": "~13.1.3",
"@types/jest": "~29.5.14",
"@types/jsdom": "~16.2.14",
"@types/jest": "~28.1.1",
"@types/jsdom": "~21.1.7",
"@typescript-eslint/eslint-plugin": "~5.15.0",
"@typescript-eslint/parser": "~5.15.0",
"eslint": "~8.11.0",
"jest": "~29.7.0",
"jest-environment-jsdom": "~29.7.0",
"jest": "~28.1.3",
"jest-environment-jsdom": "~28.1.3",
"jest-environment-jsdom-global": "~4.0.0",
"jest-standard-reporter": "~2.0.0",
"rollup": "~2.70.1",
"rollup-plugin-cleanup": "~3.2.1",
"rollup-plugin-license": "~2.6.1",
"rollup-plugin-terser": "~7.0.2",
"rollup-plugin-ts": "~2.0.5",
"ts-jest": "~29.2.5",
"ts-jest": "~28.0.8",
"typescript": "~4.6.2"
},
"peerDependencies": {
Expand Down
1 change: 1 addition & 0 deletions plugins/browser-plugin-ga-cookies/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
preset: 'ts-jest',
reporters: ['jest-standard-reporter'],
setupFilesAfterEnv: ['../../setupTestGlobals.ts'],
testEnvironment: 'jest-environment-jsdom-global',
};
10 changes: 5 additions & 5 deletions plugins/browser-plugin-ga-cookies/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@
"@ampproject/rollup-plugin-closure-compiler": "~0.27.0",
"@rollup/plugin-commonjs": "~21.0.2",
"@rollup/plugin-node-resolve": "~13.1.3",
"@types/jest": "~29.5.14",
"@types/jsdom": "~16.2.14",
"@types/jest": "~28.1.1",
"@types/jsdom": "~21.1.7",
"@typescript-eslint/eslint-plugin": "~5.15.0",
"@typescript-eslint/parser": "~5.15.0",
"eslint": "~8.11.0",
"jest": "~29.7.0",
"jest-environment-jsdom": "~29.7.0",
"jest": "~28.1.3",
"jest-environment-jsdom": "~28.1.3",
"jest-environment-jsdom-global": "~4.0.0",
"jest-standard-reporter": "~2.0.0",
"rollup": "~2.70.1",
"rollup-plugin-cleanup": "~3.2.1",
"rollup-plugin-license": "~2.6.1",
"rollup-plugin-terser": "~7.0.2",
"rollup-plugin-ts": "~2.0.5",
"ts-jest": "~29.2.5",
"ts-jest": "~28.0.8",
"typescript": "~4.6.2"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit 853d396

Please sign in to comment.