@@ -10,10 +10,15 @@ describe("local", () => {
1010 const cwd = "./test/jest/local" ;
1111 const ctx = new TestContext ( cwd ) ;
1212
13- // NOTE: install-deps takes a long time in this package
13+ // See https://github.com/emacs-eask/cli/issues/11.
14+ const avoid11 = ( emacsVersion ( ) < "28.1" ) ;
15+
16+ // NOTE: `install-deps` takes a long time in this package
1417 // this is because of recipe dependencies triggering
1518 // "temporary archives" build.
16- beforeAll ( async ( ) => await ctx . runEask ( "install-deps" , { timeout : 40000 } ) ) ;
19+ beforeAll ( async ( ) => {
20+ await ctx . runEask ( "install-deps" , { timeout : 40000 } , avoid11 )
21+ } ) ;
1722
1823 afterAll ( ( ) => ctx . cleanUp ( ) ) ;
1924
@@ -77,7 +82,10 @@ describe("local", () => {
7782 } ) ;
7883
7984 describe ( "Development" , ( ) => {
80- beforeAll ( async ( ) => await ctx . runEask ( "install-deps" ) ) ;
85+ beforeAll ( async ( ) => {
86+ await ctx . runEask ( "install-deps" , { timeout : 40000 } , avoid11 )
87+ } ) ;
88+
8189 // this requires install-deps
8290 it ( "compile" , async ( ) => {
8391 await ctx . runEask ( "compile" ) ;
@@ -110,7 +118,9 @@ describe("local", () => {
110118 } ) ;
111119
112120 describe ( "Execution" , ( ) => {
113- beforeAll ( async ( ) => await ctx . runEask ( "install-deps" ) ) ;
121+ beforeAll ( async ( ) => {
122+ await ctx . runEask ( "install-deps" , { timeout : 40000 } , avoid11 )
123+ } ) ;
114124
115125 test ( "eval" , async ( ) => {
116126 await ctx . runEask ( 'eval "(progn (require \'mini.pkg.1))"' ) ;
@@ -195,7 +205,9 @@ describe("local", () => {
195205
196206 describe ( "Linting" , ( ) => {
197207 // some lint commands may fail if packages are missing
198- beforeAll ( async ( ) => await ctx . runEask ( "install-deps" ) ) ;
208+ beforeAll ( async ( ) => {
209+ await ctx . runEask ( "install-deps" , { timeout : 40000 } , avoid11 )
210+ } ) ;
199211
200212 it . each ( [
201213 "lint checkdoc" ,
0 commit comments