@@ -40,8 +40,6 @@ export const FIXTURES_DESTINATION_DIR = path.join(
4040 FIXTURES_DIR_BASENAME ,
4141) ;
4242
43- const YARN_RC_CONTENT = 'nodeLinker: node-modules\n\nenableGlobalCache: true\n' ;
44-
4543const FIXTURES_DIR = path . join ( __dirname , '..' , FIXTURES_DIR_BASENAME ) ;
4644
4745const TAR_FOLDER = path . join ( INTEGRATION_TEST_DIR , 'tarballs' ) ;
@@ -118,10 +116,6 @@ export const setup = async (project: TestProject): Promise<void> => {
118116 encoding : 'utf-8' ,
119117 } ) ;
120118
121- await fs . writeFile ( path . join ( temp , '.yarnrc.yml' ) , YARN_RC_CONTENT , {
122- encoding : 'utf-8' ,
123- } ) ;
124-
125119 await fs . writeFile (
126120 path . join ( temp , 'package.json' ) ,
127121 JSON . stringify (
@@ -136,14 +130,14 @@ export const setup = async (project: TestProject): Promise<void> => {
136130 ) ,
137131 { encoding : 'utf-8' } ,
138132 ) ;
139-
133+ // TODO!: Rewrite
140134 // We install the tarballs here once so that yarn can cache them globally.
141135 // This solves 2 problems:
142136 // 1. Tests can be run concurrently because they won't be trying to install
143137 // the same tarballs at the same time.
144138 // 2. Installing the tarballs for each test becomes much faster as Yarn can
145139 // grab them from the global cache folder.
146- await execFile ( 'yarn ' , [ 'install' , '--no-immutable ' ] , {
140+ await execFile ( 'pnpm ' , [ 'install' , '--no-frozen-lockfile ' ] , {
147141 cwd : temp ,
148142 shell : true ,
149143 } ) ;
@@ -187,15 +181,9 @@ export const setup = async (project: TestProject): Promise<void> => {
187181 { encoding : 'utf-8' } ,
188182 ) ;
189183
190- await fs . writeFile (
191- path . join ( testFolder , '.yarnrc.yml' ) ,
192- YARN_RC_CONTENT ,
193- { encoding : 'utf-8' } ,
194- ) ;
195-
196184 const { stderr, stdout } = await execFile (
197- 'yarn ' ,
198- [ 'install' , '--no-immutable ' ] ,
185+ 'pnpm ' ,
186+ [ 'install' , '--no-frozen-lockfile ' ] ,
199187 {
200188 cwd : testFolder ,
201189 shell : true ,
0 commit comments