Skip to content

jest-watch-typeahead config uses absolute paths #3814

Closed
@cexbrayat

Description

@cexbrayat

Version

3.6.2

Reproduction link

https://github.com/cexbrayat/jest-typeahead-362

Environment info

System:
    OS: macOS 10.14.3
    CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
  Binaries:
    Node: 10.14.1 - ~/.nvm/versions/node/v10.14.1/bin/node
    Yarn: 1.15.2 - /usr/local/bin/yarn
    npm: 6.4.1 - ~/.nvm/versions/node/v10.14.1/bin/npm
  Browsers:
    Chrome: 73.0.3683.103
    Firefox: 66.0.2
    Safari: 12.0.3
  npmPackages:
    @vue/cli-overlay:  3.6.0
    @vue/cli-plugin-unit-jest: ^3.6.0 => 3.6.0
    @vue/cli-service: ^3.6.0 => 3.6.0
    @vue/cli-shared-utils:  3.6.0
    @vue/component-compiler-utils:  2.6.0
    @vue/preload-webpack-plugin:  1.1.0
    @vue/test-utils: 1.0.0-beta.29 => 1.0.0-beta.29
    @vue/web-component-wrapper:  1.2.0
    jest-serializer-vue:  2.0.2
    vue: ^2.6.10 => 2.6.10
    vue-hot-reload-api:  2.3.3
    vue-jest:  3.0.4
    vue-loader:  15.7.0
    vue-style-loader:  4.1.2
    vue-template-compiler: ^2.5.21 => 2.6.10
    vue-template-es2015-compiler:  1.9.1
  npmGlobalPackages:
    @vue/cli: 3.6.2

Steps to reproduce

vue create jest-typeahead-362 -m npm --inlinePreset '{"useConfigFiles": true,"plugins": {"@vue/cli-plugin-unit-jest": {}}}'

What is expected?

The jest.config.js file should contain:

watchPlugins: [
  'jest-watch-typeahead/filename',
  'jest-watch-typeahead/testname'
]

according to https://github.com/jest-community/jest-watch-typeahead

What is actually happening?

The file contains:

watchPlugins: [
    '/Users/ced-pro/Code/test/vue/jest-typeahead-362/node_modules/jest-watch-typeahead/filename.js',
    '/Users/ced-pro/Code/test/vue/jest-typeahead-362/node_modules/jest-watch-typeahead/testname.js'
  ]

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