kristianmandrup / rxjs-ava-marble-testing

RxJS Marble Testing for Ava
0 stars 0 forks source link

`import { marbles } from 'rxjs-ava-marble-testing'` doesn't work #1

Open Tokimon opened 6 years ago

Tokimon commented 6 years ago

Problem

When importing the marble tester I end up with: marbles === undefined. The reason for this is:

  1. require('lib/helpers/test-helper') fails as it searchs for lib as a module. Should be: require('./lib/helpers/test-helper')
  2. index.js doesn't re-export what is exported in test-helper.js

I can access the test tool directly though by using: import { marbles } from 'rxjs-ava-marble-testing/lib/helpers/test-helper'

Environment

OS: Windows 10 Node: 6.10.0 NPM: 5.4.2 Compiler: Webpack

kristianmandrup commented 6 years ago

Please make a PR and I will merge it. Not currently using RxJS or marbles, but perhaps in the near future. Thanks.

kristianmandrup commented 6 years ago

OK, I changed index.js to this

module.exports = require('./lib/helpers/test-helper')

Published as version 1.0.1

Thanks.