Skip to content

babelConfig option value is not respected if babel.config.js is found #135

@TomaszChrosniak

Description

@TomaszChrosniak

} else if (existsSync('babel.config.js')) {
babelConfig = require(path.resolve('babel.config.js'))
} else if (vueJestConfig.hasOwnProperty('babelConfig')) {

The order of operations in the babel-config-loader makes it impossible to skip configuring babel if the babel.config.js file is found.

The README states that setting the babelConfig property to false on the globals[vue-jest] object should result in babel being skipped entirely.

Similarly, if one wishes to provide a different path to the config file or a config object, they will also be ignored.

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