No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Rick
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 2
    • Best 0
    • Groups 0

    Rick

    @Rick

    0
    Reputation
    162
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Rick Follow

    Latest posts made by Rick

    • RE: Testing

      Found this issue with Jest and babel 7

      babel-jest does not transpile import/export in node_modules when Babel 7 is used

      posted in Help
      R
      Rick
    • RE: Configuration whit Jest

      What worked for me was adding

      "transformIgnorePatterns": [
        "node_modules/core-js",
        "node_modules/babel-runtime",
        "node_modules/lodash",
        "node_modules/vue"
      ],
      

      to my jest config

      Full config:

      {
          "moduleFileExtensions": [
            "js",
            "vue"
          ],
          "collectCoverageFrom": [
            "**/*.{vue}"
          ],
          "transformIgnorePatterns": [
            "node_modules/core-js",
            "node_modules/babel-runtime",
            "node_modules/lodash",
            "node_modules/vue"
          ],
          "moduleNameMapper": {
            "quasar": "<rootDir>/node_modules/quasar-framework",
            "^src/(.*)$": "<rootDir>/src/$1",
            "^assets/(.*)$": "<rootDir>/src/assets/$1",
            "^@/(.*)$": "<rootDir>/src/components/$1",
            "^variables/(.*)$": "<rootDir>/src/themes/quasar.variables.sty/$1"
          },
          "transform": {
            "^.+\\.js$": "<rootDir>/node_modules/babel-jest",
            ".*\\.(vue)$": "<rootDir>/node_modules/vue-jest"
          },
          "mapCoverage": true
        }
      

      .babelrc

      {
        "presets": [["es2015", {"modules": false}], "stage-2"],
        "plugins": ["transform-runtime"],
        "comments": false,
        "env": {
          "test": {
            "plugins": [
              "transform-es2015-modules-commonjs"
            ]
          }
        }
      }
      

      installed extra packages:

      • babel-jest
      • babel-preset-env
      • jest
      • vue-jest
      posted in Help
      R
      Rick