Comments (3)
Based on some more research, the best testing pattern for React appears to be:
Karma + Mocha + Webpack (already using) + Istanbul for code coverage
Then in the future we can integrate with a Continuous Integration platform and if we want to get real fancy look into BrowserStack or SauceLabs for robust cross platform tests. I believe we have access to SauceLabs through C9, but maybe not the full testing suite.
Here are some references:
https://github.com/NiGhTTraX/react-test-buffet
https://github.com/justinwoo/react-karma-webpack-testing
http://karma-runner.github.io/0.12/config/browsers.html
http://qiita.com/kimagure/items/f2d8d53504e922fe3c5c
https://www.toptal.com/react/how-react-components-make-ui-testing-easy
https://github.com/Swizec/react-testing-example
from open-data-explorer.
This is somewhat implemented, but I think we need to write a couple of tests and make sure the infrastructure is working
from open-data-explorer.
So, I think I'm just about there, but I cannot seem to figure out where I'm going wrong with this error when running karma start
:
ERROR in ./app/app.tests.js
Module build failed: ReferenceError: [BABEL] /Users/jasonlallymoci/Documents/workspace/open-data-explorer/app/app.tests.js: Using removed Babel 5 option: base.optional - Put the specific transforms you want in the `plugins` option
at Logger.error (/Users/jasonlallymoci/Documents/workspace/open-data-explorer/node_modules/babel-core/lib/transformation/file/logger.js:39:11)
at OptionManager.mergeOptions (/Users/jasonlallymoci/Documents/workspace/open-data-explorer/node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:20)
at OptionManager.init (/Users/jasonlallymoci/Documents/workspace/open-data-explorer/node_modules/babel-core/lib/transformation/file/options/option-manager.js:465:10)
at File.initOptions (/Users/jasonlallymoci/Documents/workspace/open-data-explorer/node_modules/babel-core/lib/transformation/file/index.js:194:75)
at new File (/Users/jasonlallymoci/Documents/workspace/open-data-explorer/node_modules/babel-core/lib/transformation/file/index.js:123:22)
at Pipeline.transform (/Users/jasonlallymoci/Documents/workspace/open-data-explorer/node_modules/babel-core/lib/transformation/pipeline.js:45:16)
at transpile (/Users/jasonlallymoci/Documents/workspace/open-data-explorer/node_modules/babel-loader/index.js:14:22)
at Object.module.exports (/Users/jasonlallymoci/Documents/workspace/open-data-explorer/node_modules/babel-loader/index.js:88:12)
from open-data-explorer.
Related Issues (20)
- As a user, I would like to see the full last updated date and time as a specific reference
- Link to dataset from search catalog too subtle
- [Airbrake] [Production] Unexpected token var
- [Airbrake] [Production] Object.keys(...).includes is not a function
- [Airbrake] [Production] undefined is not a function (evaluating 'Object.keys(r).includes(t)')
- [Airbrake] [Production] Attempted to update component `withRouter(Connect(Component))` that has already been unmounted (or failed to mount).
- [Airbrake] [Production] Unable to get property 'getHostNode' of undefined or null reference
- [Airbrake] [Production] Object doesn't support property or method 'includes'
- As a geo explorer, I would like to visualize geographic data on maps so that I can better understand the data's spatial dimensions
- Adjust styles on dataset pages to accommodate smaller desktop screen sizes
- Search stutters and search results won't load datasets in Internet Explorer 11
- Provide guidance to users through a video
- Consider incorporating download options within table
- As a user, I would like a clearly visible reset option for charts
- As a user, I would like to visualize data in pie charts
- Fields not showing up in charting interface that should
- Consider shortening shared link URLs
- Migrate to netlify and enable ssl
- Reorder table columns based on source ordering
- Sometimes numeric fields don't show up as options in the selector
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 open-data-explorer.