Skip to content

Commit

Permalink
update jest setup files to remove warings
Browse files Browse the repository at this point in the history
  • Loading branch information
hakwookim committed Jan 30, 2025
1 parent 9d7a3a4 commit 34b60e1
Show file tree
Hide file tree
Showing 32 changed files with 95 additions and 64 deletions.
5 changes: 3 additions & 2 deletions feature-libs/asm/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions feature-libs/cart/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions feature-libs/checkout/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions feature-libs/customer-ticketing/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions feature-libs/estimated-delivery-date/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions feature-libs/order/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions feature-libs/organization/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions feature-libs/pdf-invoices/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions feature-libs/pickup-in-store/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions feature-libs/product-configurator/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
4 changes: 2 additions & 2 deletions feature-libs/product-multi-dimensional/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

import 'jest-preset-angular/setup-jest';
import 'zone.js';
setupZoneTestEnv();
5 changes: 3 additions & 2 deletions feature-libs/product/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions feature-libs/qualtrics/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions feature-libs/quote/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions feature-libs/requested-delivery-date/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions feature-libs/smartedit/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions feature-libs/storefinder/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions feature-libs/tracking/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions feature-libs/user/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions integration-libs/cdc/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions integration-libs/cdp/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions integration-libs/cds/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions integration-libs/cpq-quote/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions integration-libs/digital-payments/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions integration-libs/epd-visualization/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions integration-libs/omf/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions integration-libs/opf/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions integration-libs/opps/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions integration-libs/s4-service/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions integration-libs/s4om/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions integration-libs/segment-refs/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();
5 changes: 3 additions & 2 deletions projects/schematics/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

import 'jest-preset-angular/setup-jest';
import 'zone.js';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();

0 comments on commit 34b60e1

Please sign in to comment.