Comments (9)
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.
OH ALSO: thank you so much for contributing an issue, @Jrizzi1 👍
from js-assessment.
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:
- assurance that the tests load in the same order, always
- removal of nasty AMD wrapper code in every file
- removal of the require config file
Thoughtz?
from js-assessment.
yeah i am so into this
from js-assessment.
I can try to put together a PR tonight!
from js-assessment.
cool. i'mma ship the new browser deps stuff soon, so there shouldn't be a conflict.
from js-assessment.
yo @jmeas - did you get to this yet? if not i might try to tackle it tonight cuz it's blocking
from js-assessment.
This should be fixed by #112. 👍
from js-assessment.
solved with #112, closing
from js-assessment.
Related Issues (20)
- minify browser deps? HOT 3
- random number generation test HOT 1
- Tests not loading in browser HOT 3
- Include Advanced Extra-Credit tests HOT 13
- contributors guide HOT 7
- js-koans: in-browser experience HOT 6
- async test description HOT 4
- error when I npm start HOT 2
- Best practices: declare functions safely passes by default on Firefox HOT 1
- Best Practices: parseInt hex testing wrong? HOT 9
- test description HOT 1
- Replace jshint with eslint
- Command "npm test" filed HOT 2
- Possible Error in 1st Strings Exercise HOT 1
- Jade has been renamed to Pug, please install the latest version of Pug instead of using Jade HOT 1
- Comments stating desired return would drastically improve later exercises HOT 2
- in second task (cancel counting)
- Array (4th test) HOT 1
- Any plans on upgrading this repo? HOT 2
- issue with array duplicate elements HOT 1
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 js-assessment.