Skip to content

Jestpack errors with Jest 0.8.0 #12

@richardscarrott

Description

@richardscarrott

Jest is under going rapid development at the moment, particularly with the HasteModuleLoader, so will wait until it settles down before picking this up. For now I would recommend using Jest 0.7.x

 FAIL  __bundled_tests__/www/test/spec/modules/customer/views/favourites/list/list.spec.js 
● Runtime Error
TypeError: path must be a string
    at TypeError (native)
    at Object.fs.openSync (fs.js:584:18)
    at Object.fs.readFileSync (fs.js:431:33)
    at JestModuleLoader._execModule (/Users/rscarrott/projects/project-cooper/node_modules/jestpack/ModuleLoader.js:247:16)
    at JestModuleLoader.requireModule (/Users/rscarrott/projects/project-cooper/node_modules/jestpack/ModuleLoader.js:212:14)
    at /Users/rscarrott/projects/project-cooper/node_modules/jest-cli/src/testRunners/jasmine/jasmine1.js:175:20
    at FakeTimers.runWithRealTimers (/Users/rscarrott/projects/project-cooper/node_modules/jest-cli/src/lib/FakeTimers.js:262:7)
    at jasmine1 (/Users/rscarrott/projects/project-cooper/node_modules/jest-cli/src/testRunners/jasmine/jasmine1.js:98:26)
    at /Users/rscarrott/projects/project-cooper/node_modules/jest-cli/src/TestRunner.js:365:14
    at tryCatcher (/Users/rscarrott/projects/project-cooper/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/Users/rscarrott/projects/project-cooper/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/Users/rscarrott/projects/project-cooper/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (/Users/rscarrott/projects/project-cooper/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (/Users/rscarrott/projects/project-cooper/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (/Users/rscarrott/projects/project-cooper/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/rscarrott/projects/project-cooper/node_modules/bluebird/js/main/async.js:15:14)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions