@@ -149,21 +149,21 @@ test<FixtureTestContext>('Test that the simple next app is working', async (ctx)
149
149
describe ( 'verification' , ( ) => {
150
150
test < FixtureTestContext > ( "Should warn if publish dir doesn't exist" , async ( ctx ) => {
151
151
await createFixture ( 'simple' , ctx )
152
- expect ( ( ) => runPlugin ( ctx , { PUBLISH_DIR : 'no-such-directory' } ) ) . rejects . toThrowError (
152
+ await expect ( ( ) => runPlugin ( ctx , { PUBLISH_DIR : 'no-such-directory' } ) ) . rejects . toThrowError (
153
153
/ Y o u r p u b l i s h d i r e c t o r y w a s n o t f o u n d a t : \S + n o - s u c h - d i r e c t o r y . P l e a s e c h e c k y o u r b u i l d s e t t i n g s / ,
154
154
)
155
155
} )
156
156
157
157
test < FixtureTestContext > ( 'Should warn if publish dir is root' , async ( ctx ) => {
158
158
await createFixture ( 'simple' , ctx )
159
- expect ( ( ) => runPlugin ( ctx , { PUBLISH_DIR : '.' } ) ) . rejects . toThrowError (
159
+ await expect ( ( ) => runPlugin ( ctx , { PUBLISH_DIR : '.' } ) ) . rejects . toThrowError (
160
160
'Your publish directory cannot be the same as the base directory of your site. Please check your build settings' ,
161
161
)
162
162
} )
163
163
164
164
test < FixtureTestContext > ( 'Should warn if publish dir is root (package path variant)' , async ( ctx ) => {
165
165
await createFixture ( 'simple' , ctx )
166
- expect ( ( ) =>
166
+ await expect ( ( ) =>
167
167
runPlugin ( ctx , { PUBLISH_DIR : 'app/.' , PACKAGE_PATH : 'app' } ) ,
168
168
) . rejects . toThrowError (
169
169
'Your publish directory cannot be the same as the base directory of your site. Please check your build settings' ,
@@ -172,7 +172,7 @@ describe('verification', () => {
172
172
173
173
test < FixtureTestContext > ( 'Should warn if publish dir is not set to Next.js output directory' , async ( ctx ) => {
174
174
await createFixture ( 'simple' , ctx )
175
- expect ( ( ) => runPlugin ( ctx , { PUBLISH_DIR : 'public' } ) ) . rejects . toThrowError (
175
+ await expect ( ( ) => runPlugin ( ctx , { PUBLISH_DIR : 'public' } ) ) . rejects . toThrowError (
176
176
'Your publish directory does not contain expected Next.js build output. Please check your build settings' ,
177
177
)
178
178
} )
0 commit comments