settings.json 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {
  2. "host": "http://localhost:<%= port %>",
  3. "port": 8000,
  4. "root": "dev/tests/js/jasmine",
  5. "static": "pub/static",
  6. /**
  7. * Path to themes configuration module. Relative to Magento root.
  8. * This node is replaced by formatted theme configuration by 'dev/tests/jasmine/spec_runner' module
  9. */
  10. "themes": "dev/tools/grunt/configs/themes",
  11. "files": {
  12. "requireBaseUrl": "<%= static %>/<%= area %>/<%= name %>/<%= locale %>",
  13. "compactMap" : "<%= static %>/<%= area %>/<%= name %>/<%= locale %>/requirejs-map.js",
  14. /**
  15. * Path to RequireJS library. Relative to "server.base" config.
  16. */
  17. "requireJs": {
  18. "quick": "<%= static %>/<%= area %>/<%= name %>/<%= locale %>/requirejs/require.js",
  19. "compact": "<%= static %>/base/Magento/base/default/requirejs/require.js"
  20. },
  21. /**
  22. * Overridden "grunt-contrib-jasmine" SpecRunner template.
  23. */
  24. "template": "<%= root %>/spec_runner/template.html",
  25. /**
  26. * These files are included to the page in <head> right after "require.js" in declared sequence.
  27. */
  28. "requirejsConfigs": {
  29. "quick": [
  30. "<%= static %>/<%= area %>/<%= name %>/<%= locale %>/requirejs-config.js",
  31. "<%= root %>/require.conf.js",
  32. "<%= root %>/tests/lib/**/*.conf.js",
  33. "<%= root %>/tests/app/code/**/base/**/*.conf.js",
  34. "<%= root %>/tests/app/code/**/<%= area %>/**/*.conf.js",
  35. "<%= root %>/tests/app/design/<%= area %>/<%= name %>/**/*.conf.js"
  36. ],
  37. "compact": [
  38. "<%= static %>/<%= area %>/<%= name %>/<%= locale %>/requirejs-map.js",
  39. "<%= static %>/base/Magento/base/default/mage/requirejs/baseUrlResolver.js",
  40. "<%= static %>/<%= area %>/<%= name %>/<%= locale %>/requirejs-config.js",
  41. "<%= root %>/require.conf.js",
  42. "<%= root %>/tests/lib/**/*.conf.js",
  43. "<%= root %>/tests/app/code/**/base/**/*.conf.js",
  44. "<%= root %>/tests/app/code/**/<%= area %>/**/*.conf.js",
  45. "<%= root %>/tests/app/design/<%= area %>/<%= name %>/**/*.conf.js"
  46. ]
  47. },
  48. /**
  49. * Files that contain tests. These are loaded to the page via RequireJS after all RequireJS configuration files have been loaded to the page.
  50. * The sequence is ignored.
  51. */
  52. "specs": [
  53. "<%= root %>/tests/lib/**/*.test.js",
  54. "<%= root %>/tests/app/code/**/base/**/*.test.js",
  55. "<%= root %>/tests/app/code/**/<%= area %>/**/*.test.js",
  56. "<%= root %>/tests/app/design/<%= area %>/<%= name %>/**/*.test.js"
  57. ]
  58. },
  59. "server": {
  60. /**
  61. * Directory to serve files from
  62. */
  63. "base": "./",
  64. /**
  65. * Strings, mentioned here are interpreted as regular expressions. Use this option to override server's
  66. * default behaviour and serve matched urls "as is" from Magento root.
  67. */
  68. "serveAsIs": [
  69. "^\/_SpecRunner.html",
  70. "^\/dev\/tests",
  71. "^\/.grunt",
  72. "^\/pub\/static",
  73. "^\/node_modules"
  74. ],
  75. "options": {
  76. /**
  77. * All options mentioned here are defaults for "connect" grunt task.
  78. * "debug" option enables server logs
  79. * "keepalive" makes "connect" task pause with set up spec server, which you can fetch by %host%:%port%/_SpecRunner.html address in browser
  80. */
  81. "debug": false,
  82. "keepalive": false
  83. }
  84. }
  85. }