@@ -48,7 +48,6 @@ function loadAgent (moduleName, version, isAgentlessTest, isEvpProxyTest) {
4848 if ( ! isEvpProxyTest ) {
4949 agent . setAvailableEndpoints ( [ ] )
5050 }
51- const isHappyDom = moduleName === '@happy-dom/jest-environment'
5251 return agent . load (
5352 [ 'jest' , 'http' ] ,
5453 { service : 'test' } ,
@@ -58,19 +57,15 @@ function loadAgent (moduleName, version, isAgentlessTest, isEvpProxyTest) {
5857 global . __libraryVersion__ = version
5958
6059 return {
61- jestExecutable : isHappyDom
62- ? require ( '../../../versions/jest' ) . get ( )
63- : require ( `../../../versions/jest@${ version } ` ) . get ( ) ,
60+ jestExecutable : require ( `../../../versions/jest@${ version } ` ) . get ( ) ,
6461 jestCommonOptions : {
6562 projects : [ __dirname ] ,
6663 testPathIgnorePatterns : [ '/node_modules/' ] ,
6764 coverageReporters : [ 'none' ] ,
6865 reporters : [ ] ,
6966 silent : true ,
70- testEnvironment : isHappyDom ? '@happy-dom/jest-environment' : path . join ( __dirname , 'env.js' ) ,
71- testRunner : isHappyDom
72- ? require ( '../../../versions/jest-circus' ) . getPath ( 'jest-circus/runner' )
73- : require ( `../../../versions/jest-circus@${ version } ` ) . getPath ( 'jest-circus/runner' ) ,
67+ testEnvironment : path . join ( __dirname , 'env.js' ) ,
68+ testRunner : require ( `../../../versions/jest-circus@${ version } ` ) . getPath ( 'jest-circus/runner' ) ,
7469 cache : false ,
7570 maxWorkers : '50%'
7671 }
@@ -85,7 +80,7 @@ describe('Plugin', function () {
8580 this . timeout ( testTimeout )
8681 this . retries ( 2 )
8782
88- const versions = [ 'jest-environment-node' , 'jest-environment-jsdom' , '@happy-dom/jest-environment' ]
83+ const versions = [ 'jest-environment-node' , 'jest-environment-jsdom' ]
8984
9085 withVersions ( 'jest' , versions , ( version , moduleName ) => {
9186 afterEach ( ( ) => {
0 commit comments