concerto icon indicating copy to clipboard operation
concerto copied to clipboard

Fixed no such file or directory error in decoratormanager.js Test File

Open subhajit20 opened this issue 10 months ago • 5 comments

Closes #836

Changes

  • Added __dirname keyword as prefix of every path of the .cto file
  • Screenshot 2024-04-06 at 9 26 05 PM

Author Checklist

  • [X] Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
  • [ ] Vital features and changes captured in unit and/or integration tests
  • [ ] Commits messages follow AP format
  • [ ] Extend the documentation, if necessary
  • [ ] Merging to main from fork:branchname

subhajit20 avatar Apr 06 '24 15:04 subhajit20

Hey @DianaLease can you please review this pr?

subhajit20 avatar Apr 07 '24 04:04 subhajit20

What OS and Node version are you using? Any other specific details about your environment? Wondering why this is failing for you.

DianaLease avatar Apr 10 '24 12:04 DianaLease

What OS and Node version are you using? Any other specific details about your environment? Wondering why this is failing for you.

I am using Mac OS and my node version is v18.3.0. When I execute the test file from the root of the repo then I get this error but if I specifically go inside concerto-core folder and try to execute then file the it worked fine. I used npx mocha command to run the file and there are other test files where I have faced similar issue as well

subhajit20 avatar Apr 10 '24 14:04 subhajit20

What OS and Node version are you using? Any other specific details about your environment? Wondering why this is failing for you.

I am using Mac OS and my node version is v18.3.0. When I execute the test file from the root of the repo then I get this error but if I specifically go inside concerto-core folder and try to execute then file the it worked fine. I used npx mocha command to run the file and there are other test files where I have faced similar issue as well

I see. So with this change, will will it work from both the root and from concerto-core? @subhajit20

DianaLease avatar Apr 16 '24 20:04 DianaLease

What OS and Node version are you using? Any other specific details about your environment? Wondering why this is failing for you.

I am using Mac OS and my node version is v18.3.0. When I execute the test file from the root of the repo then I get this error but if I specifically go inside concerto-core folder and try to execute then file the it worked fine. I used npx mocha command to run the file and there are other test files where I have faced similar issue as well

I see. So with this change, will will it work from both the root and from concerto-core? @subhajit20

Yup! It is working fine right now after making these changes done both from the root and the concerto-core or any other packages Directory

subhajit20 avatar Apr 17 '24 06:04 subhajit20