Skip to content

Commit

Permalink
fix(front): deprecated jest-preset-angular/setup-jest usage in unit t…
Browse files Browse the repository at this point in the history
…est setup
  • Loading branch information
tsa96 committed Jan 25, 2025
1 parent 68c2b61 commit fcb6879
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/frontend/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import 'jest-preset-angular/setup-jest';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';

setupZoneTestEnv();

// Dumb polyfill to fix dumb Jest errors
// eslint-disable-next-line unicorn/prefer-node-protocol
import { TextEncoder, TextDecoder } from 'util';
global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;

0 comments on commit fcb6879

Please sign in to comment.