Lucas_Werkmeister_WMDE changed the task status from "Open" to "Stalled". Lucas_Werkmeister_WMDE moved this task from Doing to Parents/Waiting on the Wikidata Dev Team (Sprint-∞) board. Lucas_Werkmeister_WMDE added a comment.
Filed T329553 <https://phabricator.wikimedia.org/T329553> for the dependency errors, which happen even if you just try to bump the `lockfileVersion` to 2 without any changes. I think this task is blocked until that one is resolved. Quick summary, for whoever resumes this later: Upgrading to Jest 28 should hopefully resolve these errors. In addition to `npm i -D {jest{,-environment-jsdom},@vue/vue3-jest,@types/jest,ts-jest}@28`, you will need: diff --git a/jest.config.js b/jest.config.js index 1c7d7add5f..c682fd151c 100644 --- a/jest.config.js +++ b/jest.config.js @@ -31,13 +31,15 @@ module.exports = { }, setupFilesAfterEnv: [ '<rootDir>/tests/config/setup.ts' ], testEnvironment: '<rootDir>/tests/config/JestCustomEnvironment.js', + testEnvironmentOptions: { + url: 'http://localhost/', + }, snapshotSerializers: [ 'jest-serializer-vue', ], testMatch: [ '**/tests/(unit|edge-to-edge)/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)', ], - testURL: 'http://localhost/', preset: 'ts-jest', clearMocks: true, }; diff --git a/tests/config/JestCustomEnvironment.js b/tests/config/JestCustomEnvironment.js index 51d6193dbf..f1e7c910d7 100644 --- a/tests/config/JestCustomEnvironment.js +++ b/tests/config/JestCustomEnvironment.js @@ -1,4 +1,4 @@ -const JSDOMEnvironment = require( 'jest-environment-jsdom' ); +const JSDOMEnvironment = require( 'jest-environment-jsdom' ).TestEnvironment; class JestCustomEnvironment extends JSDOMEnvironment { constructor( config, context ) { And then probably more changes after that. (In theory, you can work on the Jest 28 update locally already, but it’s a bit pointless when none of it can be merged on Gerrit, I think.) TASK DETAIL https://phabricator.wikimedia.org/T309176 WORKBOARD https://phabricator.wikimedia.org/project/board/6017/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: Lucas_Werkmeister_WMDE, noarave, ItamarWMDE, Aklapper, Michael, Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, Astuthiodit_1, 786, Biggs657, karapayneWMDE, Invadibot, maantietaja, Juan90264, Alter-paule, Beast1978, Un1tY, Akuckartz, Hook696, darthmon_wmde, Kent7301, joker88john, CucyNoiD, Nandana, Gaboe420, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, rosalieper, Neuronton, Scott_WUaS, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
