Liran Tal
💚@nodejs Security WG member | Core team @meanjs, #dockly | Author: 📘Essential Node.js Security ✨ Engineering Manager @nielsen-oss | ❤️#opensource #javascript
PASS
src/Presentation.spec.js
slides render well (20ms)
✔
attending DevTalks Bucharest (5ms)
✔
attendees are amazing! (2ms)
✔
github.com/lirantal
@liran_tal
Engineering Manager @ Nielsen
src: https://www.youtube.com/watch?v=WpkDN78P884&t=3593s
src: https://github.com/jest-community/jest-extended
blazing fast
optimizations
extensible framework
codemods
zero
configuration
chai
should.js
sinon
proxyquire
istanbul
nyc
#0CJS
testdouble
extensible framework
codemods
zero
configuration
PASS
blazing fast
optimizations
extensible framework
codemods
zero
configuration
PASS
PASS
blazing fast
optimizations
matchers
src: https://github.com/jest-community/jest-extended
matchers
src: https://github.com/jest-community/jest-extended
want more matchers?
additional jest matchers
src: https://github.com/jest-community/jest-extended
want more matchers?
hidden matchers gem!
expect.any(type)
asymmetricMatch
expect.any(type)
expect.any(type)
extensible framework
codemods
zero
configuration
PASS
PASS
PASS
blazing fast
optimizations
ava.js
mocha
tape
expect
chai
should.js
extensible framework
codemods
zero
configuration
PASS
PASS
PASS
PASS
blazing fast
optimizations
visual diff and effective verbosity
relaxed
conventions
immersive
watch mode
the logo...
visual diff and effective verbosity
relaxed
conventions
immersive
watch mode
the logo...
PASS
StaticRobert.test.js
tape
jest
StaticRobert.test.js
tape
jest
StaticRobert.js
StaticRobert.test.js
tape
jest
visual diff and effective verbosity
relaxed
conventions
immersive
watch mode
the logo...
PASS
PASS
It's The Little Things
That Matter most
visual diff and effective verbosity
relaxed
conventions
immersive
watch mode
the logo...
PASS
PASS
PASS
visual diff and effective verbosity
relaxed
conventions
immersive
watch mode
the logo...
PASS
PASS
PASS
PASS
PASS
PASS
PASS
(jest-runtime)
(jest-cli)
{
"jest": {
"globals": {
"__DEV__": true
}
}
(jest-runner)
(test_sequencer)
(jest-cli)
{
"jest": {
"globalSetup": “<rootDir>/testTearup.js”
}
{
"jest": {
"setupFiles": [“<rootDir>/setupFile.js”]
}
{
{
"jest": {
"globalTeardown": “<rootDir>/testTeardown.js”
}
PASS
PASS
PASS
Your Tests are Synchronous
You are Using Promises
You are Using Async/Await with Catch Block
Your Test Has Conditionals
Your Test Has Callbacks with Expectations
PASS
src/Presentation.spec.js
Test Suites: 1 passed, 1 total
Tests: 3 passed, 3 total
github.com/lirantal
twitter.com/liran_tal
By Liran Tal
Test doubles? Assertions? Code coverage? Jest has it all! There are many testing frameworks and test utilities in the JavaScript ecosystem, but jest is the one which is quickly becoming a favorite for many developers. The talk will introduce jest as a testing framework, the reasons why developers love it, and explore its hidden features, testing patterns, and Jest's extensions ecosystem.
💚@nodejs Security WG member | Core team @meanjs, #dockly | Author: 📘Essential Node.js Security ✨ Engineering Manager @nielsen-oss | ❤️#opensource #javascript