Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:20
    chasenlehara opened #5433
  • Nov 22 21:32
    greenkeeper[bot] commented #5421
  • Nov 22 21:32

    greenkeeper[bot] on can-stache-bindings-5.0.3

    fix(package): update can-stache… (compare)

  • Nov 22 20:13
    phillipskevin synchronize #5421
  • Nov 22 20:13

    phillipskevin on can-stache-bindings-5.0.2

    updating can-stache-bindings to… (compare)

  • Nov 22 18:52
    cherifGsoul review_requested #5430
  • Nov 22 18:47
    cherifGsoul edited #5430
  • Nov 22 18:46
    cherifGsoul synchronize #5430
  • Nov 22 18:46

    cherifGsoul on update-infrastructure-page

    Remove can-util and other stuff (compare)

  • Nov 22 18:09
    jonathanzuniga starred canjs/canjs
  • Nov 22 17:32
    mateus007 starred canjs/canjs
  • Nov 22 16:12
    gregmartin06 starred canjs/canjs
  • Nov 22 11:45
    alex-zhang starred canjs/canjs
  • Nov 22 06:22
  • Nov 21 19:51
    greenkeeper[bot] commented #5392
  • Nov 21 19:51

    greenkeeper[bot] on core-js-3.4.2

    chore(package): update core-js … (compare)

  • Nov 20 19:48

    phillipskevin on master

    Update dist for release (compare)

  • Nov 20 19:48

    phillipskevin on v6.2.7

    Update dist for release 6.2.7 (compare)

  • Nov 20 19:30

    phillipskevin on six-two-seven

    (compare)

  • Nov 20 19:30
    phillipskevin closed #5431
Eben
@eben-roux
anyone around to give advice setting up tests that use canjs components?
Kevin Phillips
@phillipskevin
sure
Eben
@eben-roux
so I'm looking at mocha and I used that basic example test
I'm assuming that all the testing runs in node so the module format has to be node compliant
how would I go about testing a module that uses es6 import for instance?
e.g.: import DefineMap from 'can-define/map/';
Kevin Phillips
@phillipskevin
well... you could use babel
Eben
@eben-roux
I know this isn't exactly canjs specific so if you have a good resource I can take a look at that would also be fine... last serious JS testing I did was with JSTestDriver / QUnit about 2 years ago
Kevin Phillips
@phillipskevin
and use mocha's --compilers option
what module loader are you using to load these things in your app?
Eben
@eben-roux
was thinking that there would be some transpiling... is steal-mocha specific to testing in a browser using a page?
Kevin Phillips
@phillipskevin
yeah
Eben
@eben-roux
I use steal when developing the apps
Kevin Phillips
@phillipskevin
ok
that's what we use most of the time
and just test in a browser
Eben
@eben-roux
ah... was wondering what that is
I had a look at the canjs tests and did notice that
Kevin Phillips
@phillipskevin
Eben
@eben-roux
something you guys rolled yourself also?
Kevin Phillips
@phillipskevin
yeah
Eben
@eben-roux
does it handle async/promise testing also?
Kevin Phillips
@phillipskevin
yeah
Eben
@eben-roux
ok, excellent
Kevin Phillips
@phillipskevin
if you don't want to test in a browser, you can use https://mochajs.org/#about-babel
Eben
@eben-roux
I'm going to have a serious look, thanks
Kevin Phillips
@phillipskevin
but testing in a browser when you're writing components usually makes sense
Eben
@eben-roux
I'd prefer testing from node but not sure how feasible that is nowadays
Kevin Phillips
@phillipskevin
you can use headless chrome
Eben
@eben-roux
agreed, but I'm actually writing some infrastructure components that don't have any UI elements
I'm going to give it a shot... will ask when I get stuck, thanks :) --- should get cracking on this tomorrow
cheers
Kevin Phillips
@phillipskevin
it's using qunit, but there's not much of a difference
and you can use https://github.com/donejs/donejs-mocha if you're using donejs
Eben
@eben-roux
great stuff, thanks again --- haven't looked at the donejs site for ages
Kevin Phillips
@phillipskevin
no problem
last plug, give canjs/canjs#3862 a :thumbsup: if you're interested in a testing-specific guide
Viktor Busko
@Lighttree

https://gitter.im/canjs/canjs?at=5a96b77f0202dc012e96818d

Maybe there is way to expose params to connect configuration ?
https://github.com/canjs/can-connect/blob/master/data/url/url.js#L373

In this case we can configure what ajax params URLBehavior will use. So the idea that we will be able to do something like...

Entity.connection = connect(
    [url, constructor, constructorStore, canMap, realTime, callbacksOnce], {
        url: '/secured/entity',
        ajaxConf: {
                // configuration params  like beforeSend etc..
                // that will allow us do some additional logic if required
        },
        Map: Entity,
        List: Entity.List,
        algebra
    }
);
AntonProkofyev
@AntonProkofyev
Hi folks, i'm using url behavior and find interesting code there
https://github.com/canjs/can-connect/blob/master/data/url/url.js#L363
why the decision to modify object which we try to send to the server was made
why not just copy without removing
AntonProkofyev
@AntonProkofyev
why it's not configurable at least
Justin Meyer
@justinbmeyer
@Lighttree you could probably build some hooks like that yourself, but they aren't built in now
@AntonProkofyev it's modifying the object where?
@/all I'm going to walk through building a rich text editor on a live stream today: https://www.youtube.com/watch?v=EpG1Wzn5by8
Mohamed Cherif Bouchelaghem
@cherifGsoul
@justinbmeyer I was not in front of my computer :/
Julian
@pYr0x
today is donejs contributor meeting?