Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: ES6 and testing framework #13

Merged
merged 2 commits into from
Dec 19, 2018
Merged

Conversation

pimotte
Copy link
Contributor

@pimotte pimotte commented Dec 18, 2018

I tried out the first part of #11, which immediately implied that the tests would break (rewire does not support es6 modules), so I also started on the test framework #12

I'm actually not too sure about whether we want to use karma for testing at library level, nor if we want to be doing webpack at library level. Input here is appreciated.

This PR does some initial setup for using mocha, but is not finished.

TODO:

  • Use dynamic import instead of require
  • Reimplement all tests in mocha

Pim Otte added 2 commits December 18, 2018 15:13
This change was made to be more aligned with ES6.
Note that we use the unoffical `babel-plugin-dynamic-import-node` plugin to transpile
the dynamic import to a require for mocha-purposes. This is something that would normally
be done by a tool like webpack.
@bkaptijn bkaptijn merged commit f6dde8c into discipl:master Dec 19, 2018
@pimotte
Copy link
Contributor Author

pimotte commented Dec 19, 2018

@bkaptijn This wasn't actually finished yet, so there are a lot fewer tests now 😅

@bkaptijn
Copy link
Contributor

I know ;-P, but the old ones arent that great (atomic for instance). Just look at the old ones and reimplement the tests. I'm going to do the same for discipl-core-memory etc.. will wait on you saying you are finished before merging from now on.

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.

2 participants