Migrate .babelrc to babel.config.json

This commit is contained in:
Dannon Baker
2021-10-10 21:28:29 -04:00
parent 01016499fd
commit fe821e82c8
2 changed files with 6 additions and 2 deletions
+6 -2
View File
@@ -3,7 +3,11 @@ const path = require("path");
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
const modulesToTransform = ["bootstrap-vue/src/components/form-input", "rxjs/internal/scheduler/AsyncScheduler"].join("|");
const modulesToTransform = [
"bootstrap-vue",
"rxjs/internal/scheduler/AsyncScheduler",
"@hirez_io"
].join("|");
module.exports = {
// All imported modules in your tests should be mocked automatically
@@ -169,7 +173,7 @@ module.exports = {
// A map from regular expressions to paths to transformers
transform: {
[`(${modulesToTransform}).+\\.js$`]: "vue-jest",
// [`(${modulesToTransform}).+\\.js$`]: "vue-jest",
".*\\.(vue)$": "vue-jest",
"^.+\\.js$": "babel-jest",
"\\.yml$": "jest-transform-yaml",