@@ -60,6 +60,7 @@ describe("execa-webpack-plugin", () => {
6060 expect ( ( ) => run ( ) ) . toThrow ( ) ) ;
6161
6262 it ( "should works with `onBuildStart` option" , ( ) => {
63+ expect . assertions ( 2 ) ;
6364 mkdirSyncSafe ( dir ) ;
6465
6566 expect ( fs . statSync ( dir ) . isDirectory ( ) ) . toBe ( true ) ;
@@ -81,6 +82,8 @@ describe("execa-webpack-plugin", () => {
8182 } ) ;
8283
8384 it ( "should works with `onBuildStart` and `dev` is `false` option" , ( ) => {
85+ expect . assertions ( 2 ) ;
86+
8487 mkdirSyncSafe ( dir ) ;
8588
8689 expect ( fs . statSync ( dir ) . isDirectory ( ) ) . toBe ( true ) ;
@@ -103,6 +106,8 @@ describe("execa-webpack-plugin", () => {
103106 } ) ;
104107
105108 it ( "should works with `onBuildEnd` option" , ( ) => {
109+ expect . assertions ( 2 ) ;
110+
106111 mkdirSyncSafe ( dir ) ;
107112
108113 expect ( fs . statSync ( dir ) . isDirectory ( ) ) . toBe ( true ) ;
@@ -124,6 +129,8 @@ describe("execa-webpack-plugin", () => {
124129 } ) ;
125130
126131 it ( "should works with `onBuildEnd` and `dev` is `false` options" , ( ) => {
132+ expect . assertions ( 2 ) ;
133+
127134 mkdirSyncSafe ( dir ) ;
128135
129136 expect ( fs . statSync ( dir ) . isDirectory ( ) ) . toBe ( true ) ;
@@ -146,6 +153,8 @@ describe("execa-webpack-plugin", () => {
146153 } ) ;
147154
148155 it ( "should works with `onBuildExit` option" , ( ) => {
156+ expect . assertions ( 2 ) ;
157+
149158 mkdirSyncSafe ( dir ) ;
150159
151160 expect ( fs . statSync ( dir ) . isDirectory ( ) ) . toBe ( true ) ;
@@ -167,6 +176,8 @@ describe("execa-webpack-plugin", () => {
167176 } ) ;
168177
169178 it ( "should works with `onBuildExit` and `dev` is `false` options" , ( ) => {
179+ expect . assertions ( 2 ) ;
180+
170181 mkdirSyncSafe ( dir ) ;
171182
172183 expect ( fs . statSync ( dir ) . isDirectory ( ) ) . toBe ( true ) ;
@@ -189,6 +200,8 @@ describe("execa-webpack-plugin", () => {
189200 } ) ;
190201
191202 it ( "should throw error with `bail: true` option" , ( ) => {
203+ expect . assertions ( 1 ) ;
204+
192205 let catchError = null ;
193206
194207 return run ( {
@@ -226,6 +239,8 @@ describe("execa-webpack-plugin", () => {
226239 } ) ) ;
227240
228241 it ( "should works with nested commands" , ( ) => {
242+ expect . assertions ( 2 ) ;
243+
229244 mkdirSyncSafe ( dir ) ;
230245
231246 expect ( fs . statSync ( dir ) . isDirectory ( ) ) . toBe ( true ) ;
@@ -252,6 +267,8 @@ describe("execa-webpack-plugin", () => {
252267 } ) ;
253268
254269 it ( "should works when nested commands return nothing and 'bail: false'" , ( ) => {
270+ expect . assertions ( 1 ) ;
271+
255272 let catchError = null ;
256273
257274 return run ( {
0 commit comments