Skip to content

Conversation

koddsson
Copy link
Member

This patch removes the custom setup of running the files in the endpoints
folders and instead uses the unix style globbing to find the tests files.

This enables us to use builtin functions such as describe.only and
it.only to only run a single test or suite at a time as well as enables
us to maybe run tests in parallel.

This patch removes the custom setup of running the files in the endpoints
folders and instead uses the unix style globbing to find the tests files.

This enables us to use builtin functions such as `describe.only` and
`it.only` to only run a single test or suite at a time as well as enables
us to maybe run tests in parallel.
const debug = makeDebug('config')

let env = process.env.NODE_ENV ? `${process.env.NODE_ENV}.config` : 'dev.config'
let env = process.env.NODE_ENV
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'd like to clean up this whole config file in another PR and just use the config package as is. There seems like there's a lot of code here that can easily become bugs just like this.

Also the debug setup is due for a refactoring. The bug here wasn't being surfaced since it was being swallowed up in the debug.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this file is a bit messy. Only comment would be that there's a mention of dev.config.json on line 21 which is not valid any more, but doesn't matter if we clean up this file soon anyway.

const debug = makeDebug('config')

let env = process.env.NODE_ENV ? `${process.env.NODE_ENV}.config` : 'dev.config'
let env = process.env.NODE_ENV
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this file is a bit messy. Only comment would be that there's a mention of dev.config.json on line 21 which is not valid any more, but doesn't matter if we clean up this file soon anyway.

@koddsson koddsson merged commit 28c1fed into apis-is:master Oct 14, 2017
@koddsson koddsson deleted the run-tests-in-isolation branch October 14, 2017 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants