I'm getting the following error with Jest, but unclear why even after adding the testEnvironmentOptions
TypeError: Cannot read properties of undefined (reading 'testEnvironmentOptions') at new JSDOMEnvironment (node_modules/jest-environment-jsdom/build/index.js:72:28) at async TestScheduler.scheduleTests (node_modules/@jest/core/build/TestScheduler.js:333:13) at async runJest (node_modules/@jest/core/build/runJest.js:404:19) Here is my Jest config in my package.json:
"jest": { "moduleNameMapper": { "^@/(.*)$": "<rootDir>/$1", "^~/(.*)$": "<rootDir>/$1", "^vue$": "vue/dist/vue.common.js" }, "testEnvironment": "jsdom", "testEnvironmentOptions": { "browsers": [ "chrome", "firefox", "safari" ] }, "moduleFileExtensions": [ "vue", "js", "json" ], "transformIgnorePatterns": [ "/node_modules/(?!crypto-random-string)" ], "transform": { "^.+\\.js$": "<rootDir>/node_modules/babel-jest", ".*\\.(vue)$": "<rootDir>/node_modules/vue-jest" }, "collectCoverage": true, "collectCoverageFrom": [ "<rootDir>/src/**/*.vue", "<rootDir>/src/**/*.js" ] }