Skip to content

Unit testing requires "require" #274

@CapyTheBeara

Description

@CapyTheBeara

(version 0.0.22)

If I'm unit testing a Post model in my_app/app/models/post.js, when testing in my_app/tests/models/post-test.js, I have to use

var Post = require('my_app/models/post')['default'];

instead of

import Post from 'appkit/models/post'

as EAK would have.

The resulting error is something like:

Error: ENOENT, no such file or directory 'tmp/tree_merger-tmp_dest_dir-B0kTayiu.tmp/appkit/models/post.js'

Is this an issue with how the Brocfile is setup?

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