Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support jest v27 in vue3-jest #343

Merged
merged 3 commits into from Jul 19, 2021

Commits on Jul 14, 2021

  1. test: add typescript e2e test without babel

    Adds a test close to the setup used by the CLI in a TS project without Babel.
    
    The existing TS test was moved to `typescript-with-babel`.
    The new test is a copy of the older one, with all babel dependencies removed, a rewritten component using the Composition API, a test in TS, a TS config close to the CLI one, and a shim file.
    cexbrayat committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    e4f8ab1 View commit details
    Browse the repository at this point in the history
  2. feat: support jest v27 in vue3-jest

    And also babel-jest and ts-jest v27, for Vue 3.
    cexbrayat committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    c2e2913 View commit details
    Browse the repository at this point in the history
  3. feat: use TS config to have commonjs modules

    The previous logic was trying to figure out if CommonJS modules were used in the TS config and if not,
    and if no babel configuration provided, then loaded a babel transformer to change the module format.
    
    This changes the logic to use a more straightforward method by directly updating the tsconfig to commonjs,
    which should hopefully have the same results without side-effects.
    cexbrayat committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    e499e63 View commit details
    Browse the repository at this point in the history