We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
现在项目结构是src+test两个目录,但在test里require src目录下面的js时,会报错,因为从当前文件进行test时,找不到src目录下面的文件了。。
The text was updated successfully, but these errors were encountered:
算解决了,统一使用var appRoot = require('app-root-path').path,来作为前缀。。
Sorry, something went wrong.
No branches or pull requests
现在项目结构是src+test两个目录,但在test里require src目录下面的js时,会报错,因为从当前文件进行test时,找不到src目录下面的文件了。。
The text was updated successfully, but these errors were encountered: