Skip to content

Commit

Permalink
chore: update jest preset (#9874)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Dec 2, 2024
1 parent 6b1f985 commit b5a49f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"useLightClient": false,
"namedInputs": {
"sharedGlobals": [
"{workspaceRoot}/project/testing/**/*.ts",
"{workspaceRoot}/projects/testing/**/*.ts",
"{workspaceRoot}/nx.json",
"{workspaceRoot}/package-lock.json",
"{workspaceRoot}/tsconfig.*.json",
Expand Down
5 changes: 3 additions & 2 deletions projects/testing/setup-jest/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/// <reference types="jest" />
import 'jest-preset-angular/setup-jest';

import {tuiSwitchNgDevMode} from '@taiga-ui/testing/mocks';
import {setupZoneTestEnv} from 'jest-preset-angular/setup-env/zone';

tuiSwitchNgDevMode(false);

setupZoneTestEnv(); // drop it after migrate zone less mode

const {TextEncoder: TextEncoderMock, TextDecoder: TextDecoderMock} = require('node:util');

global.TextEncoder = TextEncoderMock;
Expand Down

0 comments on commit b5a49f7

Please sign in to comment.