-
-
Save murindwaz/f7d1abcf05fc2b88950ea47dd98df4e7 to your computer and use it in GitHub Desktop.
"Testing an AngularJS app with Jest" jest code samples
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 localStorageMock = /* ... some mock code ... */ | |
Object.defineProperty(window, 'localStorage', { | |
value: localStorageMock | |
}); | |
import './app/index.module'; | |
import 'angular-mocks'; | |
import './app/mock/utils'; |
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
"jest": { | |
"testPathDirs": ["src"], | |
"setupTestFrameworkScriptFile": "src/jest.init.js" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment