I use Jest to write unit tests for my Cocos 3.8 project. When running the tests, I got an error like this:
Test suite failed to run
Cannot find module 'cc' from 'myclass.test.ts'
> 1 | import { log, Node} from 'cc';
| ^
How should I configure Jest to work with Cocos 3.8?