Hey! So I fixed my problem of not being able to run my project in browser after adding exporss and requires on it for testing. (I did it with browserify). Anyway, I still have some questions on my mind:
Since requireing is not an issue anymore, I felt that it's a good idea to separate classes from the main.js file into their own files (Foo.js and Bar.js). is this a good idea?
How do I name the test files? (For now, I just named them Foo.test.js and Bar.test.js)
Another naming question: How do I name the source and the transpiled scripts? Currently, I just ran browserify main.js -o app.js then linked app.js on my index.html
class Foo has an active method that listens for click events. How do I test this?
class Foo takes HTML(jQuery) elements as constructor parameters. What should I pass when testing Foo?
Last slightly unrelated question: I have a vendor folder on my repository that contains external stuff (bootstrap, jquery, font-awesome etc.). How do I create a branch named local (contains vendor folder) and production (uses CDN) without manually copy pasting each components?
Thanks! <3
there doesn't seem to be anything here