@@ -26,7 +26,7 @@ describe('Zipping', () => {
2626 browser : 'firefox' ,
2727 zip : { downloadPackages : [ 'flatten' ] } ,
2828 } ) ;
29- expect ( await project . fileExists ( '.output/' ) ) . toBe ( true ) ;
29+ expect ( await project . pathExists ( '.output/' ) ) . toBe ( true ) ;
3030
3131 await extract ( sourcesZip , { dir : unzipDir } ) ;
3232 // Update package json wxt path
@@ -51,7 +51,7 @@ describe('Zipping', () => {
5151 } ) ,
5252 ) . resolves . not . toHaveProperty ( 'exitCode' ) ;
5353
54- await expect ( project . fileExists ( unzipDir , '.output' ) ) . resolves . toBe ( true ) ;
54+ await expect ( project . pathExists ( unzipDir , '.output' ) ) . resolves . toBe ( true ) ;
5555 expect (
5656 await project . serializeFile (
5757 project . resolvePath ( unzipDir , 'package.json' ) ,
@@ -95,8 +95,8 @@ describe('Zipping', () => {
9595 } ,
9696 } ) ;
9797
98- expect ( await project . fileExists ( artifactZip ) ) . toBe ( true ) ;
99- expect ( await project . fileExists ( sourcesZip ) ) . toBe ( true ) ;
98+ expect ( await project . pathExists ( artifactZip ) ) . toBe ( true ) ;
99+ expect ( await project . pathExists ( sourcesZip ) ) . toBe ( true ) ;
100100 } ) ;
101101
102102 it ( 'should not zip hidden files into sources by default' , async ( ) => {
@@ -117,8 +117,8 @@ describe('Zipping', () => {
117117 browser : 'firefox' ,
118118 } ) ;
119119 await extract ( sourcesZip , { dir : unzipDir } ) ;
120- expect ( await project . fileExists ( unzipDir , '.env' ) ) . toBe ( false ) ;
121- expect ( await project . fileExists ( unzipDir , '.hidden-dir/file' ) ) . toBe ( false ) ;
120+ expect ( await project . pathExists ( unzipDir , '.env' ) ) . toBe ( false ) ;
121+ expect ( await project . pathExists ( unzipDir , '.hidden-dir/file' ) ) . toBe ( false ) ;
122122 } ) ;
123123
124124 it ( 'should not zip files inside hidden directories if only the directory is specified' , async ( ) => {
@@ -142,8 +142,8 @@ describe('Zipping', () => {
142142 } ,
143143 } ) ;
144144 await extract ( sourcesZip , { dir : unzipDir } ) ;
145- expect ( await project . fileExists ( unzipDir , '.hidden-dir/file' ) ) . toBe ( false ) ;
146- expect ( await project . fileExists ( unzipDir , '.hidden-dir/nested/file' ) ) . toBe (
145+ expect ( await project . pathExists ( unzipDir , '.hidden-dir/file' ) ) . toBe ( false ) ;
146+ expect ( await project . pathExists ( unzipDir , '.hidden-dir/nested/file' ) ) . toBe (
147147 false ,
148148 ) ;
149149 } ) ;
@@ -171,12 +171,12 @@ describe('Zipping', () => {
171171 } ,
172172 } ) ;
173173 await extract ( sourcesZip , { dir : unzipDir } ) ;
174- expect ( await project . fileExists ( unzipDir , '.env' ) ) . toBe ( true ) ;
175- expect ( await project . fileExists ( unzipDir , '.hidden-dir/file' ) ) . toBe ( true ) ;
176- expect ( await project . fileExists ( unzipDir , '.hidden-dir/nested/file1' ) ) . toBe (
174+ expect ( await project . pathExists ( unzipDir , '.env' ) ) . toBe ( true ) ;
175+ expect ( await project . pathExists ( unzipDir , '.hidden-dir/file' ) ) . toBe ( true ) ;
176+ expect ( await project . pathExists ( unzipDir , '.hidden-dir/nested/file1' ) ) . toBe (
177177 true ,
178178 ) ;
179- expect ( await project . fileExists ( unzipDir , '.hidden-dir/nested/file2' ) ) . toBe (
179+ expect ( await project . pathExists ( unzipDir , '.hidden-dir/nested/file2' ) ) . toBe (
180180 true ,
181181 ) ;
182182 } ) ;
@@ -210,10 +210,10 @@ describe('Zipping', () => {
210210 } ) ;
211211 await extract ( sourcesZip , { dir : unzipDir } ) ;
212212 expect (
213- await project . fileExists ( unzipDir , 'entrypoints/not-firefox.content.ts' ) ,
213+ await project . pathExists ( unzipDir , 'entrypoints/not-firefox.content.ts' ) ,
214214 ) . toBe ( false ) ;
215215 expect (
216- await project . fileExists ( unzipDir , 'entrypoints/all.content.ts' ) ,
216+ await project . pathExists ( unzipDir , 'entrypoints/all.content.ts' ) ,
217217 ) . toBe ( true ) ;
218218 } ) ;
219219
@@ -234,7 +234,7 @@ describe('Zipping', () => {
234234 browser,
235235 } ) ;
236236
237- expect ( await project . fileExists ( sourcesZip ) ) . toBe ( true ) ;
237+ expect ( await project . pathExists ( sourcesZip ) ) . toBe ( true ) ;
238238 } ,
239239 ) ;
240240
@@ -258,7 +258,7 @@ describe('Zipping', () => {
258258 } ,
259259 } ) ;
260260
261- expect ( await project . fileExists ( sourcesZip ) ) . toBe ( true ) ;
261+ expect ( await project . pathExists ( sourcesZip ) ) . toBe ( true ) ;
262262 } ,
263263 ) ;
264264
@@ -282,7 +282,7 @@ describe('Zipping', () => {
282282 } ,
283283 } ) ;
284284
285- expect ( await project . fileExists ( sourcesZip ) ) . toBe ( false ) ;
285+ expect ( await project . pathExists ( sourcesZip ) ) . toBe ( false ) ;
286286 } ,
287287 ) ;
288288
@@ -305,6 +305,6 @@ describe('Zipping', () => {
305305 } ) ;
306306
307307 await extract ( sourcesZip , { dir : unzipDir } ) ;
308- expect ( await project . fileExists ( unzipDir , 'manifest.json' ) ) . toBe ( true ) ;
308+ expect ( await project . pathExists ( unzipDir , 'manifest.json' ) ) . toBe ( true ) ;
309309 } ) ;
310310} ) ;
0 commit comments