Skip to content

Conversation

verkholantsev
Copy link

Hi!

I've got a problem to use js-must in browser, so I setted up lmd builder to assemble distribution package for browser and added it to repo (to use in npm).

Usage:

Build dist package:

make dist

Removing package added to make clean target.

@mabuchner
Copy link

This is awesome, but how can is use the expect wrapping with this?

@verkholantsev
Copy link
Author

I can config builder to put this module.exports = Must to global scope (like window.Must = Must). So you can use it like this:

var expect = window.Must;
expect(true).be.true();

Sounds good?

@mabuchner
Copy link

Yes, sounds good to me.

@kofifus
Copy link

kofifus commented Aug 3, 2017

Can this be updated for latest must ?

@moll
Copy link
Owner

moll commented Aug 31, 2017

Hey, @verkholantsev! Really long time no speak! ^_^ I asked something in #11 that I'd like to get your opinion on, too. I'll quote it here to make your life easier. :) Goes for @kofifus, too.

[...] I've pondered up a question of how are you fellows running your unit tests in browsers? :) Don't the popular test runners these days use Browserify or something equivalent internally that makes using CommonJS libs (like Must.js is) transparent? Where do <script src> tags come into play?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants