Skip to content

Commit

Permalink
Make jest-cli a real module.
Browse files Browse the repository at this point in the history
jest now has a main file which only exports. It also has bin/jest which consumes itself as a module.

This results in bin/jest being much smaller and easier to understand. It's now only responsible for finding the appropriate jest module and running it's runCLI method.

src/jest now only exports things. It exports runCLI, as it did before, but also exports TestRunner directly, should someone wish to operate jest without CLI (an important first step to running jest in a browser for browser CI testing).

the runCLI method has been simplified by moving it's steps into separate functions, reducing duplicated logic and making the chain of events a bit easier to follow.
  • Loading branch information
leebyron committed Nov 13, 2014
1 parent 8af1439 commit 7fc5f13
Show file tree
Hide file tree
Showing 4 changed files with 316 additions and 322 deletions.
Loading

0 comments on commit 7fc5f13

Please sign in to comment.