@cycle/time 0.9.1 Cannot find module './src/mock-time-source' from 'rxjs.js'
Author: evenchange4Created Aug 31, 2017Updated May 11, 2026
Labelspriority 3 (should)issue is bug
Code to reproduce the issue:
There is a problem of module resolution when I update @cycle/time from ^0.8.0 to ^0.9.1:
// error occurred
import { mockTimeSource } from '@cycle/time/rxjs' ● Test suite failed to run
Cannot find module './src/mock-time-source' from 'rxjs.js'
at Resolver.resolveModule (../../node_modules/jest-resolve/build/index.js:179:17)
at Object.<anonymous> (../../node_modules/@cycle/time/rxjs.js:7:26)Workaround
Should I use the rxjs.js file with specific path?
// work!
import { mockTimeSource } from '@cycle/time/lib/rxjs'
import { timeDriver } from '@cycle/time/lib/es6/rxjs'Source: cyclejs/cyclejs