Giter Site home page Giter Site logo

bigtestjs / mocha Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 235 KB

All BigTest development has moved to https://github.com/thefrontside/bigtest

Home Page: https://github.com/thefrontside/bigtest

License: MIT License

JavaScript 100.00%
assertions bigtest convergent-assertions mocha

mocha's People

Contributors

minkimcello avatar robdel12 avatar wwilsman avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

zburke

mocha's Issues

Update Readme

Some parts of the readme are outdated.

  • The default timeout for it.always is 200ms
  • The convergent hook section probably isn't necessary, or we can use @bigtest/interactor as an example.
  • Pausing tests was a hack and is deprecated. We should add a note why with the alternative.

A way to unpause when using the pause helper

The pause helper on @bigtest/mocha & in @bigtest/interaction is really helpful for debugging tests. But when you pause a test with Karma the runner hangs and you need to kill the test server and restart it to rerun any tests.

I'm not sure how we handle this. The first thought is save the resolve method of the never ending promise to a global function so you can resolve it at any time. But this pollutes the global space ๐Ÿค”

Include Sinon & chai by default

We want to be able to import both of these packages (include sinon & chai) from @bigtest/mocha:

import { expect, snion } from '@bigtest/mocha'
// ....

Configure ES modules correctly

It is common in a webpack environment when using babel to not transform modules within the node_modules directory. Our package's "module" field points directly to the src files, which are typically compiled with @babel/preset-env. When babel is configured to not compile our packages within node_modules, bundles that use our packages can end up broken.

This can be seen in @bigtest/interaction tests by removing the (!?/@bigtest) regexp within the babel-loader exclude option in the karma.config.js file. This causes the package to fail to properly extend the convergence class and thereby causes every test to fail.

(moved from thefrontside/bigtest#55)

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.