Created
November 16, 2016 18:39
-
-
Save ninjapanzer/2328804e104d5ff9d066e2de05f86c54 to your computer and use it in GitHub Desktop.
Jest Elixir Helper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Elixir = require('laravel-elixir'); | |
| var config = Elixir.config; | |
| var TestingTask = require('laravel-elixir/tasks/shared/Tests'); | |
| /* | |
| |---------------------------------------------------------------- | |
| | Jest Testing | |
| |---------------------------------------------------------------- | |
| | | |
| */ | |
| Elixir.extend('jestTest', function(src, command) { | |
| TestingTask( | |
| 'JEST JS Tests', | |
| src || '**/resources/**/*.js', | |
| command || 'npm test' | |
| ); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment