GraphQL on the Edge
A shield for your app
Mike Fix
Normalize
Sanitize
Verify
(902)-226-3784
<script src=" ">
new Date('2017-10')
`+19022263784`
`null`
`1506816000000`
Application
`npm i -S gnt`
GraphQL Normalized Types
Simple
Consistent
Reliable
XSS Safe Type
Human Name
...
The Future
The Future
CVV
Cent
Address
Country
Blood Type
Good Password
CSS Color
HTML Tag
Currencies
MIME Type
File
Max String
SQL Safe
URL
IP Address
Glob String
Airport
Testing at the Edge
“For libraries, tests should ideally be written against the public APIs. This goes against the common mantra of unit testing, but in our experience this helps both ensure that the right thing is being tested, and that it is easy to replace the underlying implementation”
API Testing
Unit Testing!
Deployment, Smoke, Regression...
Reusability
Data-driven Testing
...only your data changes
...only your data changes
“For very complex code, fuzz testing may work better than unit tests. If the code you're testing has to handle many unexpected cases that are hard to predict, it might be worth writing tests in a non-deterministic manner that randomly generates inputs and asserts that the outputs satisfy certain conditions.”
Contact Me
{
data: {
me: {
displayName: "Michael Fix",
email: "mrfix84@gmail.com",
website: "mfix22.github.io",
socials: {
twitter: "@fixitup2",
github: "@mfix22"
}
}
}
}
Bonus
carbon.now.sh
“Write tests. Not too many. Mostly integration.”