Giter Site home page Giter Site logo

Comments (3)

jasonlally avatar jasonlally commented on August 30, 2024

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.

jasonlally avatar jasonlally commented on August 30, 2024

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.

jasonlally avatar jasonlally commented on August 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.