@孙善明 If you are relying on files from js-controller (like tools.js), you need to mock the methods in order to use them in unit tests. Remember, those don't have a real js-controller in the background.
This is documented here: https://github.com/ioBroker/testing#adapter-startup-unit-test (in the middle of the code block). You would have to mock getDefaultDataDir, like this:
"{CONTROLLER_DIR}/lib/tools.js": {
getDefaultDataDir() { return "../../iobroker-data"; }
},
(I'm not 100% sure about the actual return value).