* Added meaningful comment for skipping the tests if it's a WooCommerce Core process environment.

* Fixed the flag number for MiniCart
This commit is contained in:
Tarun Vijwani 2022-05-05 12:19:38 +04:00 committed by GitHub
parent 26fbb3f569
commit 51495ff32c
6 changed files with 7 additions and 1 deletions

View File

@ -26,6 +26,7 @@ const block = {
if ( process.env.WOOCOMMERCE_BLOCKS_PHASE < 2 ) {
// Skips all the tests if it's a WooCommerce Core process environment.
// eslint-disable-next-line jest/no-focused-tests
test.only( 'Skipping Cart & Checkout tests', () => {} );
}

View File

@ -4,6 +4,7 @@
import { shopper, SIMPLE_VIRTUAL_PRODUCT_NAME } from '../../../../utils';
if ( process.env.WOOCOMMERCE_BLOCKS_PHASE < 2 ) {
// Skips all the tests if it's a WooCommerce Core process environment.
// eslint-disable-next-line jest/no-focused-tests
test.only( `Skipping Cart & Checkout tests`, () => {} );
}

View File

@ -31,6 +31,7 @@ import {
import { createCoupon } from '../../../utils';
if ( process.env.WOOCOMMERCE_BLOCKS_PHASE < 2 ) {
// Skips all the tests if it's a WooCommerce Core process environment.
// eslint-disable-next-line jest/no-focused-tests
test.only( 'Skipping Cart & Checkout tests', () => {} );
}

View File

@ -17,6 +17,7 @@ const productWooSingle1 = Products().find(
);
if ( process.env.WOOCOMMERCE_BLOCKS_PHASE < 2 ) {
// Skips all the tests if it's a WooCommerce Core process environment.
// eslint-disable-next-line jest/no-focused-tests
test.only( `Skipping Cart & Checkout tests`, () => {} );
}

View File

@ -4,6 +4,7 @@
import { merchant, shopper } from '../../../../utils';
if ( process.env.WOOCOMMERCE_BLOCKS_PHASE < 2 ) {
// Skips all the tests if it's a WooCommerce Core process environment.
// eslint-disable-next-line jest/no-focused-tests
test.only( 'Skipping Cart & Checkout tests', () => {} );
}

View File

@ -54,7 +54,8 @@ const WooCommerce = new WooCommerceRestApi( {
},
} );
if ( process.env.WOOCOMMERCE_BLOCKS_PHASE < 3 ) {
if ( process.env.WOOCOMMERCE_BLOCKS_PHASE < 2 ) {
// Skips all the tests if it's a WooCommerce Core process environment.
// eslint-disable-next-line jest/no-focused-tests
test.only( `Skipping ${ block.name } tests`, () => {} );
}