[ 
https://issues.apache.org/jira/browse/NIFI-14241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17956675#comment-17956675
 ] 

ASF subversion and git services commented on NIFI-14241:
--------------------------------------------------------

Commit 7c6a534edb56bbe11c4d7edc84f7606d8825a393 in nifi's branch 
refs/heads/main from Rob Fellows
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=7c6a534edb ]

[NIFI-14241] - Replace deprecated imports of setup-jest with new approach 
(#9697)

* [NIFI-14241] - Replace deprecated imports of setup-jest with new approach

* review feedback

> Replace deprecated imports of setup-jest with new approach
> ----------------------------------------------------------
>
>                 Key: NIFI-14241
>                 URL: https://issues.apache.org/jira/browse/NIFI-14241
>             Project: Apache NiFi
>          Issue Type: Sub-task
>          Components: Core UI
>            Reporter: Rob Fellows
>            Assignee: Rob Fellows
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> When running unit tests we now see console warnings about importing of 
> setup-jest being deprecated
>  
> {code:java}
> console.warn
>       Importing "setup-jest.js" directly is deprecated. The file 
> "setup-jest.js" will be removed in the future.
>       Please use "setupZoneTestEnv" function instead. Example:
>       // setup-jest.ts
>       import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
>       setupZoneTestEnv();
>   11 |     }
>   12 | };
> > 13 | import 'jest-preset-angular/setup-jest';
>      | ^
>   14 |
>   15 | // 
> <https://jestjs.io/docs/manual-mocks#mocking-methods-which-are-not-implemented-in-jsdom>
>   16 | Object.defineProperty(window, 'matchMedia', {
>   at Object.<anonymous> 
> (../../node_modules/jest-preset-angular/setup-jest.js:1:111)
>   at Object.<anonymous> (src/test-setup.ts:13:1) {code}
>  
> {{{}{}}}These warnings should be resolved before this is removed.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to