Guest User

Untitled

a guest
Jan 17th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. Test suite failed to run
  2.  
  3. .../node_modules/vuex-typex/dist/index.js:19
  4. import { Store } from "vuex";
  5. ^^^^^^
  6.  
  7. SyntaxError: Unexpected token import
  8.  
  9. at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:305:17)
  10. at Object.<anonymous> (src/store/main.ts:9:18)
  11. ...
  12.  
  13. "vue": "^2.5.10"
  14. "vuex": "^3.0.0"
  15. "typescript": "^2.6.2"
  16. "vuex-typex": "^3.0.1"
  17. "jest": "^21.2.1"
  18. "jest-vue-preprocessor": "^1.3.1"
  19. "@types/jest": "^21.1.8"
  20. "ts-jest": "^21.2.4"
  21. "typescript-babel-jest": "^1.0.5"
  22.  
  23. {
  24. "presets": [
  25. ["env", {
  26. "modules": false,
  27. "targets": {
  28. "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
  29. }
  30. }],
  31. "stage-2"
  32. ],
  33. "plugins": ["transform-runtime"],
  34. "env": {
  35. "test": {
  36. "presets": ["env", "stage-2"]
  37. }
  38. }
  39. }
  40.  
  41. ...
  42. "jest": {
  43. "moduleFileExtensions": [
  44. "js",
  45. "ts",
  46. "vue"
  47. ],
  48. "moduleNameMapper": {
  49. "^@/(.*)$": "<rootDir>/src/$1",
  50. "\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/mocks/file.ts",
  51. "\.(css|less)$": "<rootDir>/mocks/style.ts"
  52. },
  53. "transform": {
  54. ".*\.(vue)$": "<rootDir>/node_modules/jest-vue-preprocessor",
  55. ".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js",
  56. ".*": "<rootDir>/node_modules/babel-jest"
  57. },
  58. "transformIgnorePatterns": [
  59. "<rootDir>/node_modules/(?!vuex-i18n).+\.js$"
  60. ],
  61. "testMatch": [
  62. "**/?(*.)spec.ts"
  63. ],
  64. "verbose": true
  65. }
  66. ...
  67.  
  68. ...
  69. "jest": {
  70. "globals": {
  71. "ts-jest": {
  72. "compilerOptions": {
  73. "module": "commonjs"
  74. },
  75. "include": [
  76. "./test/**/*"
  77. ]
  78. }
  79. }
  80. }
  81. ...
  82.  
  83. es2015
  84. stage-2
  85. "browserslist": [ "> 1%", "last 2 versions", "not ie <= 8" ]
Add Comment
Please, Sign In to add comment