Coder Social home page Coder Social logo

Comments (9)

ashleygwilliams avatar ashleygwilliams commented on June 11, 2024

hi @Jrizzi1 ! this is a duplicate of #61 - the tests are in a random order because they are loaded using require.

a few weeks ago we decided to close the issue- but we are currently working on some rewrites as we move to a major version release, and i think that this is at least worth reconsidering. i can empathize with getting disoriented!

@jmeas @kadamwhite thoughts?

from js-assessment.

ashleygwilliams avatar ashleygwilliams commented on June 11, 2024

OH ALSO: thank you so much for contributing an issue, @Jrizzi1 👍

from js-assessment.

jamesplease avatar jamesplease commented on June 11, 2024

I'm thinking we could potentially just get rid of require altogether. What we would do instead is just type out the filenames manually in the test file and use browser globals.

Loading each script manually is old-school, and using globals is bad practice, but in this case these things work really well, I think. Because of the fact the app files are stubbed out, nobody will need to go in and add new script tags when they clone this lib to write some code. Also, the browser globals will already be added by us in those stubs.

The only time someone would need to change either of these is if they planned to add new tests, and an instruction on how to do that would be easy to add to the README, I think.

What we get in exchange for those two inconveniences are:

  1. assurance that the tests load in the same order, always
  2. removal of nasty AMD wrapper code in every file
  3. removal of the require config file

Thoughtz?

from js-assessment.

ashleygwilliams avatar ashleygwilliams commented on June 11, 2024

yeah i am so into this

from js-assessment.

jamesplease avatar jamesplease commented on June 11, 2024

I can try to put together a PR tonight!

from js-assessment.

ashleygwilliams avatar ashleygwilliams commented on June 11, 2024

cool. i'mma ship the new browser deps stuff soon, so there shouldn't be a conflict.

from js-assessment.

ashleygwilliams avatar ashleygwilliams commented on June 11, 2024

yo @jmeas - did you get to this yet? if not i might try to tackle it tonight cuz it's blocking

from js-assessment.

jacobroufa avatar jacobroufa commented on June 11, 2024

This should be fixed by #112. 👍

from js-assessment.

ashleygwilliams avatar ashleygwilliams commented on June 11, 2024

solved with #112, closing

from js-assessment.

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.