Skip to content

Instantly share code, notes, and snippets.

@jeffmo
Last active August 29, 2015 14:01
Show Gist options
  • Save jeffmo/5817ba22b05e597a03e0 to your computer and use it in GitHub Desktop.
Save jeffmo/5817ba22b05e597a03e0 to your computer and use it in GitHub Desktop.
// build/modules/Application.js
module.exports = function() { console.log('hai!'); };
// test/client/index.js
describe('Application', function() {
it('should be nice!', function() {
var Application = require('../../build/modules/Application')
var app = new Application()
})
})
{
"name": "jefftest",
"jest": {
"testDirectoryName": "test",
"unmockedModulePathPatterns": [
"<rootDir>/node_modules/react"
],
"testPathIgnorePatterns": [
"<rootDir>/node_modules"
]
},
"dependencies": {
"envify": "^1.2.1",
"jest-cli": "^0.1.9",
"react": "^0.10.0"
}
}
[jeffmo@jeffmombp.local ~/jtest]$ jest
Found 1 matching tests...
PASS test/client/index.js (0.012s)
0/1 tests failed
Run time: 1.363s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment