diff --git a/nx.json b/nx.json index 7a6031062cbe..0fbde20b91b3 100644 --- a/nx.json +++ b/nx.json @@ -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", diff --git a/projects/testing/setup-jest/index.ts b/projects/testing/setup-jest/index.ts index da8c82e62ee1..91d12ff012dc 100644 --- a/projects/testing/setup-jest/index.ts +++ b/projects/testing/setup-jest/index.ts @@ -1,10 +1,11 @@ /// -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;