Skip to content

sirlancelot/jest-dynamic-import-bug

Repository files navigation

jest-dynamic-import-bug

Project setup

npm install

Reproduction steps

  1. Go through project setup
  2. In ./tests/unit/dynamic-import.spec.js delete or comment line 7
  3. Run npm run test:unit
  4. Note successful run of 2 tests
  5. Run npm run test:unit -- --watchAll
  6. Note successful run of 2 tests and watch mode working
  7. Run npm run test:unit -- --watch
  8. Note crash with the following error:
    Configuration error:
    
    Could not locate module @/lang/${locale} mapped as:
    /Users/mpietz/Git/jest-dynamic-import-bug/src/lang/${locale}.
    
    Imgur

About

A vue-cli project which reproduces issue vuejs/vue-cli#5432

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published