Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Test suite failed to run
- .../node_modules/vuex-typex/dist/index.js:19
- import { Store } from "vuex";
- ^^^^^^
- SyntaxError: Unexpected token import
- at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:305:17)
- at Object.<anonymous> (src/store/main.ts:9:18)
- ...
- "vue": "^2.5.10"
- "vuex": "^3.0.0"
- "typescript": "^2.6.2"
- "vuex-typex": "^3.0.1"
- "jest": "^21.2.1"
- "jest-vue-preprocessor": "^1.3.1"
- "@types/jest": "^21.1.8"
- "ts-jest": "^21.2.4"
- "typescript-babel-jest": "^1.0.5"
- {
- "presets": [
- ["env", {
- "modules": false,
- "targets": {
- "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
- }
- }],
- "stage-2"
- ],
- "plugins": ["transform-runtime"],
- "env": {
- "test": {
- "presets": ["env", "stage-2"]
- }
- }
- }
- ...
- "jest": {
- "moduleFileExtensions": [
- "js",
- "ts",
- "vue"
- ],
- "moduleNameMapper": {
- "^@/(.*)$": "<rootDir>/src/$1",
- "\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/mocks/file.ts",
- "\.(css|less)$": "<rootDir>/mocks/style.ts"
- },
- "transform": {
- ".*\.(vue)$": "<rootDir>/node_modules/jest-vue-preprocessor",
- ".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js",
- ".*": "<rootDir>/node_modules/babel-jest"
- },
- "transformIgnorePatterns": [
- "<rootDir>/node_modules/(?!vuex-i18n).+\.js$"
- ],
- "testMatch": [
- "**/?(*.)spec.ts"
- ],
- "verbose": true
- }
- ...
- ...
- "jest": {
- "globals": {
- "ts-jest": {
- "compilerOptions": {
- "module": "commonjs"
- },
- "include": [
- "./test/**/*"
- ]
- }
- }
- }
- ...
- es2015
- stage-2
- "browserslist": [ "> 1%", "last 2 versions", "not ie <= 8" ]
Add Comment
Please, Sign In to add comment