Comments (4)
Personally, I do not have much experience with testing suites. If anyone has more experience with this, what are your thoughts/suggestions on a which testing library to use? I assume we'll need separate testing suites for server vs. client side...
from navi.
Well, I don't know about Preact, ( maybe enzyme works with it? ) but on the server Mocha, Expect, Supertest, and Superagent is nice and easy to setup. ( I haven't actually contributed yet just throwing some ideas out there )
yarn add --dev mocha expect supertest superagent
// index.test.js
const expect = require('expect')
it('test runner should work', () => {
expect(5 + 5).toBe(10)
expect(false).toBeFalsy()
expect(null).toBeNull()
})
https://mochajs.org/
http://facebook.github.io/jest/docs/en/expect.html
https://github.com/visionmedia/supertest
I'll make a PR in case you guys want to go that route 😄
from navi.
Ya I have written tests in ruby mostly. For javascript the only thing I've used is mocha and chai and not extensively by any means. I will have to look but I think I might have a sandbox project I was messing with a while back to get familiar with mocha/chai. They seem to be common or jest would be another option to consider.
from navi.
so here's chai for preact https://github.com/developit/preact-jsx-chai/
from navi.
Related Issues (20)
- Style login page per mockup
- Style register page per mockup
- Create Nav component per mockup HOT 4
- Add client testing
- Document leaflet.js
- Create a resources for beginners page which will include Github/Git instructions HOT 3
- Use secure URL for OSM tile requests
- Pins cover map as you click around (even if you don't save the pins) HOT 3
- Homepage Styling
- declare permissions in manifest.json HOT 3
- fix search autocomplete geocode HOT 1
- Incorporate responsive styling to user account forms HOT 2
- add delete to savedpins HOT 3
- Merge duplicate functions (createLabel, createInput, createButton) HOT 6
- Improve rendering when device changes orientation HOT 1
- Save directions feature
- Implement start/end navigation feature for directions
- Trailing Commas user-controller.js HOT 3
- Searching While Awaiting Geolocation Feature HOT 3
- display saved pins desc field link to map HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from navi.