Created
April 27, 2018 12:24
-
-
Save aktraore/238fe13111dbc1fd393763fdd7d712e7 to your computer and use it in GitHub Desktop.
Jest init file for AngularJS
This file contains 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
import * as angular from "angular"; | |
import jQuery from 'jquery'; | |
Object.defineProperty(window, "jQuery", { value: jQuery }); | |
Object.defineProperty(window, "$", { value: jQuery }); | |
Object.defineProperty(window, "angular", { value: angular }); | |
import "angular-mocks"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment