GithubHelp home page GithubHelp logo

Bring your own mocha.html about component-test HOT 2 OPEN

Swatinem avatar Swatinem commented on August 23, 2024
Bring your own mocha.html

from component-test.

Comments (2)

matthewmueller avatar matthewmueller commented on August 23, 2024

+1 for things like using the history API. I would argue you that most DOM nodes should be created in a before or beforeEach and appended to the page.

IMO, It's not trivial to set up all the dependencies to make sure it works across browser, phantom, saucelabs, etc, so it should be avoided.

Your example brings up an interesting point though. It'd be nice to be able to bring in all the additional fixtures into the mocha.html or index.html

For now I think we could have an option, like --testpage or --mochapage index.html or something

from component-test.

Swatinem avatar Swatinem commented on August 23, 2024

I would argue you that most DOM nodes should be created in a before or beforeEach and appended to the page.

True. It’s just much more convenient to do it in mocha.html. So it should be supported somehow.

from component-test.

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.