@@ -48,7 +48,6 @@ function loadAgent (moduleName, version, isAgentlessTest, isEvpProxyTest) {
48
48
if ( ! isEvpProxyTest ) {
49
49
agent . setAvailableEndpoints ( [ ] )
50
50
}
51
- const isHappyDom = moduleName === '@happy-dom/jest-environment'
52
51
return agent . load (
53
52
[ 'jest' , 'http' ] ,
54
53
{ service : 'test' } ,
@@ -58,19 +57,15 @@ function loadAgent (moduleName, version, isAgentlessTest, isEvpProxyTest) {
58
57
global . __libraryVersion__ = version
59
58
60
59
return {
61
- jestExecutable : isHappyDom
62
- ? require ( '../../../versions/jest' ) . get ( )
63
- : require ( `../../../versions/jest@${ version } ` ) . get ( ) ,
60
+ jestExecutable : require ( `../../../versions/jest@${ version } ` ) . get ( ) ,
64
61
jestCommonOptions : {
65
62
projects : [ __dirname ] ,
66
63
testPathIgnorePatterns : [ '/node_modules/' ] ,
67
64
coverageReporters : [ 'none' ] ,
68
65
reporters : [ ] ,
69
66
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' ) ,
74
69
cache : false ,
75
70
maxWorkers : '50%'
76
71
}
@@ -85,7 +80,7 @@ describe('Plugin', function () {
85
80
this . timeout ( testTimeout )
86
81
this . retries ( 2 )
87
82
88
- const versions = [ 'jest-environment-node' , 'jest-environment-jsdom' , '@happy-dom/jest-environment' ]
83
+ const versions = [ 'jest-environment-node' , 'jest-environment-jsdom' ]
89
84
90
85
withVersions ( 'jest' , versions , ( version , moduleName ) => {
91
86
afterEach ( ( ) => {
0 commit comments