-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
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
Use the standard src/tests paths, move package.json to the root. #292
Conversation
API specs implemented for 299/649 (46%) APIs. |
Signed-off-by: dblock <dblock@amazon.com>
API specs implemented for 299/649 (46%) APIs. |
Signed-off-by: dblock <dblock@amazon.com>
Is this specific to |
API specs implemented for 299/649 (46%) APIs. |
It's not. I think working in this repo is unnecessary cumbersome because you have to use relative paths for includes, and having to always remember to When adding spec tests (dredd) we run into an additional problem. Dredd has files such as hooks.js and we will place them into I could move tools into src/tools/ instead of just src, and still move package.json to the root, but that seems unnecessary. |
@nhtruong if your issue is the name |
API specs implemented for 299/649 (46%) APIs. |
I see. That makes sense. I'm in! |
Before merging. Do you prefer Option A
Option B
Option C
|
This is not a |
Ok, and where do you want the tests for tools? B or C? |
Tests for the tools should be in |
Btw I hope your IDE gives you a hand with renaming/moving files because all of these changes would be very painful without! |
b002aec
to
6b7279b
Compare
API specs implemented for 299/649 (46%) APIs. |
Signed-off-by: dblock <dblock@amazon.com>
API specs implemented for 299/649 (46%) APIs. |
Ok. Here's what I did:
|
Description
In #286 I am adding tests and things are getting messy having to deal with relative paths for tooling (for example, I'd like to lint .js files in tests that are dredd hooks). This PR adopts a more standard layout of
tools
andtests
and movespackage.json
to the root, making it easier for developers to work in the repo.A nice side-effect is that we can stop using relative paths in imports in tests by adding
baseUrl
intotsconfig.json
andmoduleDirectories: ['node_modules', 'tools']
intojest.config.js
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.