Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Switch expected test entry structure to colocated, glob-based pattern #27

Merged
merged 10 commits into from
Nov 15, 2017

Conversation

rtsao
Copy link
Member

@rtsao rtsao commented Nov 10, 2017

This change enables unit tests to be colocated with code, rather than enforcing a top-level tests directory.

Resolves #28

@old-fusion-bot
Copy link

Found TODOs without GitHub issues:

// TODO: use 'webpack/hot/signal' instead

// TODO: Do we need to do something different here for production?

@rtsao rtsao added the breaking label Nov 10, 2017
throw new Error(`Testing requires a ${serverTestEntry} directory`);
if (env === 'test' && !globby.sync(serverTestGlobs).length) {
throw new Error(
`Testing requires server tests in __tests__ or __tests__/__browser__`
Copy link
Contributor

Choose a reason for hiding this comment

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

__node__ instead of __browser__

@rtsao rtsao merged commit 00b07b8 into master Nov 15, 2017
@lhorie lhorie deleted the colocated-tests branch January 4, 2018 20:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants