Skip to content

Instantly share code, notes, and snippets.

@aktraore

aktraore/init.ts

Created Apr 27, 2018
Embed
What would you like to do?
Jest init file for AngularJS
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
You can’t perform that action at this time.