Skip to content

Allow option to configure babelrc location for vue-jest #66

Open
@AtofStryker

Description

@AtofStryker

Is this currently an option? Currently running into the issue where vue-jest cannot find my .babelrc file when vue-jest's install directory is not within referencing directory.

example:
lerna-repo
-babelrc
-node_modules -> contains-vue jest
-lerna packages
--myComponent
--jestConfiguration

inside my jestConfiguration is a reference to the workspace vue-jest:

transform: {
'.*\.(vue)$': "../node_modules/vue-jest"
}

running the above fails because vue-jest cannot find my babelrc file. however, this works:

example:
lerna-repo
-babelrc
-node_modules -> contains-vue jest
-lerna packages
--myComponent
--jestConfiguration
--babelrc

to get around this, i am linking the parent babelrc file and removing it within npm lifecycle scripts.
version on npm is 5.6.0 and node is 8.9.4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions