These are chat archives for reactioncommerce/reaction

23rd
May 2017
hengsoheak
@hengsoheak
May 23 2017 04:35 UTC
Can i used Reaction with mysql?
Brent Hoover
@zenweasel
May 23 2017 05:19 UTC
No, not really
vipul08
@vipul08
May 23 2017 05:52 UTC
@hrath2015 that is my question. How this environment variable I can set
In Windows
hrath2015
@hrath2015
May 23 2017 05:55 UTC
type the command on prompt set MOCHA_GREP=Account Search results
replace Account Search results with your string
vipul08
@vipul08
May 23 2017 05:59 UTC
Oh okay got it
Let me execute it and see if it is working fine
vipul08
@vipul08
May 23 2017 09:26 UTC
@hrath2015 As suggested by you, I have set the environment variable and run the meteor test command but whole test case executed.
Brent Hoover
@zenweasel
May 23 2017 09:28 UTC
I am trying to install/run tests on Windows right now
hrath2015
@hrath2015
May 23 2017 10:32 UTC
@vipul08 try in a new command window with Admin perms. See the results with other criteria.
Brent Hoover
@zenweasel
May 23 2017 10:33 UTC
Man, installing on Windows is a pain
I forgot how much
hrath2015
@hrath2015
May 23 2017 10:34 UTC
If it is fresh install yes.
esp bcrypt successful native build
image.png
Brent Hoover
@zenweasel
May 23 2017 10:37 UTC
oh boy, I haven’t even got there yet. :grimacing:
those tests results bring back fond memories
hrath2015
@hrath2015
May 23 2017 10:39 UTC
I know...
so @vipul08 I changed the env variable value to other criteria and it ran only 5 test cases. Please try in a new admin window and see it it works for you.
can you paste the echo %MOCHA_GREP% output
echo %MOCHA_GREP%
vipul08
@vipul08
May 23 2017 10:44 UTC
@hrath2015 ok let me execute it. I know it is working for you that is why it's irritating me that why it is not working for me🤔
Phuong Pham
@fuo
May 23 2017 11:26 UTC
I try to update some translations in this file /private/data/i18n/de.json but it hasn't updated on the front at all... Am I missing any step there? Do I have to run any command to clear the cache..v..v.? Please help... thanks
Brent Hoover
@zenweasel
May 23 2017 11:27 UTC
You need to either reaction reset or do Meteor.call(“i18n/flushTranslations”);
Phuong Pham
@fuo
May 23 2017 11:41 UTC
1000 thanks @zenweasel
jaubut
@jaubut
May 23 2017 14:13 UTC
Is it normal that this "cfs:gridfs: updating npm dependencies -- mongodb, gridfs-stream..." take so long..
does reaction commerce support CAD currency ?
vipul08
@vipul08
May 23 2017 16:08 UTC
Which string we actually pass in mocha_grep
@hrath2015 Is it mentioned in describe("")
Or in it("")
Or test case file name
vipul08
@vipul08
May 23 2017 16:14 UTC
@hrath2015 if that is the case . I am getting zero test case passed
hrath2015
@hrath2015
May 23 2017 16:15 UTC
what is the final output can u please share the screen shot
vipul08
@vipul08
May 23 2017 16:17 UTC
Sure
How can I add the screen shot here
sorry I am not able to find any option :(
hrath2015
@hrath2015
May 23 2017 16:19 UTC
drag and drop
or copy and past
vipul08
@vipul08
May 23 2017 16:21 UTC
Capture.PNG
hrath2015
@hrath2015
May 23 2017 16:22 UTC
please remove quotes from wishlist
vipul08
@vipul08
May 23 2017 16:22 UTC
ok
hrath2015
@hrath2015
May 23 2017 16:22 UTC
try it in new window please
vipul08
@vipul08
May 23 2017 16:22 UTC
OK
vipul08
@vipul08
May 23 2017 16:30 UTC
running my test case
again
The only bad thing about Meteor is
it is damn too slow
it is frustrating that you have to wait for long time to see your changes
hrath2015
@hrath2015
May 23 2017 16:36 UTC
not sure what is going on with you... below tests ran for me in less than 2 min..
image.png
vipul08
@vipul08
May 23 2017 16:44 UTC
same error
Capture.PNG

import {expect} from "meteor/practicalmeteor:chai";
import {Meteor} from "meteor/meteor";
import {Factory} from "meteor/dburles:factory";
import * as Collections from "/lib/collections";
import {Reaction} from "/server/api";
import {Products, Accounts} from "/lib/collections";
import {sinon} from "meteor/practicalmeteor:sinon";
import {addProduct} from "/server/imports/fixtures/products";
import Fixtures from "/server/imports/fixtures";
import {Wishlist} from "./lib/collections/collection"
import {getShop} from "/server/imports/fixtures/shops";

Fixtures();

describe("WishList", function () {
const user = Factory.create("registeredUser");
const shop = getShop();
const userId = user._id;
const sessionId = Reaction.sessionId = Random.id();
let sandbox;

before(function () {
});

beforeEach(function () {
    Wishlist.remove({});
    sandbox = sinon.sandbox.create();
});

afterEach(function () {
    sandbox.restore();
});

after(function () {
    Meteor.users.remove({});
});


afterEach(function () {
    Meteor.users.remove({});
});

it("Creates a wish list for a user", function () {
    const wishlistId=Wishlist.insert({userId: userId})
    expect(wishlistId).to.not.be.null
})
this is my code
one thing to note here
is
when I was able to execute all the test case there this wishlist test case is running fine
jordi amatller
@idroj_i_twitter
May 23 2017 16:47 UTC
hi, is there a mobile app based on reaction commerce backend, thanks!
maybe using react native or ionic2
vipul08
@vipul08
May 23 2017 16:48 UTC
ionic2 is using angular
js
hrath2015
@hrath2015
May 23 2017 16:50 UTC
@vipul08 please do it in normal command prompt
and see if it works
vipul08
@vipul08
May 23 2017 16:50 UTC
ok
hrath2015
@hrath2015
May 23 2017 16:54 UTC
@idroj_i_twitter none that we are aware of.
vipul08
@vipul08
May 23 2017 17:24 UTC
Capture.PNG
No luck
:(
:'(
hrath2015
@hrath2015
May 23 2017 17:25 UTC
why did u add ; when setting variable
vipul08
@vipul08
May 23 2017 17:26 UTC
Will it create problem?
hrath2015
@hrath2015
May 23 2017 17:26 UTC
yes
vipul08
@vipul08
May 23 2017 17:26 UTC
:(
And one more thing why my test cases taking lot of time
Any idea?
vipul08
@vipul08
May 23 2017 18:53 UTC
Pheww!! Finally I am able to execute my test case
it worked for me in cmd
thanks @hrath2015
for your help
hrath2015
@hrath2015
May 23 2017 19:04 UTC
:smile: :+1:
vipul08
@vipul08
May 23 2017 19:05 UTC
here is the screenshot
Capture.PNG
:D
hrath2015
@hrath2015
May 23 2017 19:06 UTC
cool
Sophie He
@sophiehe
May 23 2017 19:34 UTC
Our next Reaction Action livestream and Q&A will take place June 1 at 10am PDT. We'll be covering installation, previewing our style guide, and showcasing live shops. Save your spot here: https://www.crowdcast.io/e/reaction-action-june
And if you're in LA, swing by our office TONIGHT for our in-person Meteor Meetup! Food and drinks will be provided. More info + RSVP here: https://www.meetup.com/Meteor-LA/events/240063458/
Curran
@curranabell
May 23 2017 23:32 UTC

Aloha, where would I add the required MuiThemeProvider component to my custom theme directory in the "App" container at the root of the project? It is required to use material-ui and I am getting an error when using Material Ui components. import React from 'react';
import ReactDOM from 'react-dom';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import MyAwesomeReactComponent from './MyAwesomeReactComponent';

const App = () => (
<MuiThemeProvider>
<MyAwesomeReactComponent />
</MuiThemeProvider>
);

ReactDOM.render(
<App />,
document.getElementById('app')
);

I need to import the code above
Curran
@curranabell
May 23 2017 23:49 UTC
This is my error "Warning: Failed context type: The context muiTheme is marked as required in Paper, but its value is undefined."