Last active
August 29, 2015 14:01
-
-
Save jeffmo/5817ba22b05e597a03e0 to your computer and use it in GitHub Desktop.
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
// build/modules/Application.js | |
module.exports = function() { console.log('hai!'); }; |
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
// test/client/index.js | |
describe('Application', function() { | |
it('should be nice!', function() { | |
var Application = require('../../build/modules/Application') | |
var app = new Application() | |
}) | |
}) |
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
{ | |
"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" | |
} | |
} |
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
[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