{"id":264,"date":"2016-04-20T09:00:00","date_gmt":"2016-04-20T00:00:00","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2016\/04\/20\/component-base-TDD-with-karma"},"modified":"2022-10-28T21:28:45","modified_gmt":"2022-10-28T12:28:45","slug":"component-base-tdd-with-karma","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2016\/04\/20\/component-base-tdd-with-karma\/","title":{"rendered":"karma\u3067\u59cb\u3081\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30d9\u30fc\u30b9\u306eTDD"},"content":{"rendered":"

\u9ad8\u3044\u3068\u3053\u308d\u304c\u30c0\u30e1\u306a\u5c0f\u98fc\u3067\u3059\u3002\u518d\u6765\u9031\u98db\u884c\u6a5f\u306b\u4e57\u308a\u307e\u3059\u3002<\/p>\n

\u3055\u3066\u3001\u5148\u65e5Angular1.x\u7cfb\u306eSPA\u306b\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3092\u5c0e\u5165\u3057\u305f\u8a71<\/a>\u3067\u3001\u4f5c\u6210\u4e2d\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3060\u3051\u3092\u30d6\u30e9\u30a6\u30b6\u306b\u63cf\u753b\u3057\u3066\u3001TDD\u3063\u307d\u304f\u958b\u767a\u3092\u9032\u3081\u3066\u3044\u304f\u624b\u6cd5\u306b\u3064\u3044\u3066\u89e6\u308c\u307e\u3057\u305f\u3002
\n\u4eca\u56de\u306f\u305d\u306e\u5177\u4f53\u7684\u306a\u624b\u6cd5\u306b\u3064\u3044\u3066\u89e6\u308c\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002
\n(\u3042\u307e\u308a\u985e\u4f3c\u306e\u8a18\u4e8b\u3092\u898b\u305f\u3053\u3068\u304c\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u3082\u3057\u304b\u3057\u305f\u3089\u8a18\u4e8b\u306b\u3059\u308b\u307e\u3067\u3082\u306a\u3044\u3053\u3068\u3060\u3063\u305f\u308a\u3057\u3066...)<\/p>\n

\u30d8\u30c3\u30c9\u30ec\u30b9\u306a\u30c6\u30b9\u30c8\u3078\u306e\u4e0d\u5b89<\/h2>\n

PhantomJS<\/code>\u306e\u3088\u3046\u306a\u30d8\u30c3\u30c9\u30ec\u30b9\u30d6\u30e9\u30a6\u30b6\u3084jsdom<\/code>\u306e\u3088\u3046\u306a\u64ec\u4f3c\u30d6\u30e9\u30a6\u30b6\u74b0\u5883\u3067\u306e\u30c6\u30b9\u30c8\u306f\u3001\u5b9f\u884c\u304c\u8efd\u3044\u53cd\u9762\u3001\u30c6\u30b9\u30c8\u3057\u305f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u5b9f\u969b\u306b\u3069\u3046\u3044\u3046\u52d5\u304d\u3092\u3057\u3066\u3044\u308b\u306e\u304b\uff1f\u3069\u3093\u306a\u98a8\u306b\u63cf\u753b\u3055\u308c\u3066\u3044\u308b\u306e\u304b\u306b\u78ba\u4fe1\u3092\u6301\u3061\u3065\u3089\u3044\u3068\u3053\u308d\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n

\u3069\u3046\u306b\u304b\u3057\u3066\u3001\u81ea\u5206\u304c\u66f8\u3044\u3066\u3044\u308b\u30c6\u30b9\u30c8\u304c\u5b9f\u969b\u306b\u3069\u3093\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u30d6\u30e9\u30a6\u30b6\u306b\u63cf\u753b\u3059\u308b\u306e\u304b\u3092\u78ba\u8a8d\u51fa\u6765\u308c\u3070\u5b89\u5fc3\u3067\u304d\u308b\u306e\u3067\u3059\u304c...
\n\u3068\u3053\u308d\u3067\u30c6\u30b9\u30c8\u30e9\u30f3\u30ca\u30fc\u306ekarma<\/code>\u3067\u306f\u3001PhantomJS<\/code>\u7528\u306b\u66f8\u3044\u305f\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u3001\u8ffd\u52a0\u8a2d\u5b9a\u4e0d\u8981\u3067\u305d\u306e\u307e\u307echrome\/firefox<\/code>\u306a\u3069\u3067\u3082\u5b9f\u884c\u3067\u304d\u308b\u4ed5\u7d44\u307f\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n

\u30d6\u30e9\u30a6\u30b6\u3067\u30c6\u30b9\u30c8\u5bfe\u8c61\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u63cf\u753b\u3059\u308b<\/h2>\n

\u307e\u305a\u6700\u521d\u306bkarma<\/code>\u304c\u3069\u3093\u306a\u69cb\u6210\u3067\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u306e\u304b\u3092\u7c21\u5358\u306b\u3055\u3089\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

\"karma\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u56f3\"<\/p>\n

\u56f3\u306e\u3088\u3046\u306b\u3001karma<\/code>\u306fkarma\u30e9\u30f3\u30ca\u30fc\u30d7\u30ed\u30bb\u30b9\u304c\u30c6\u30b9\u30c8\u7528\u306e\u30b5\u30fc\u30d0\u3092\u8d77\u52d5\u3057\u3001karma<\/code>\u304c\u7528\u610f\u3057\u305fhtml<\/code>\u30d5\u30a1\u30a4\u30eb\u306b\u30c6\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u30d6\u30e9\u30a6\u30b6\u304c\u8aad\u307f\u8fbc\u3093\u3067\u3001\u30c6\u30b9\u30c8\u3092\u9010\u6b21\u5b9f\u884c\u3057\u3066\u3044\u304f\u69cb\u6210\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002
\n\u3053\u306e\u969b\u30c6\u30b9\u30c8\u30b5\u30fc\u30d0\u306b\u30a2\u30af\u30bb\u30b9(\u30c7\u30d5\u30a9\u30eb\u30c8\u3060\u3068http:\/\/localhost:9876\/<\/code>)\u3059\u308b\u3068\u3001karma.conf.js<\/code>\u3067\u8a2d\u5b9a\u3057\u305f\u30c6\u30b9\u30c8\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002
\n\u3053\u3053\u3067DEBUG<\/code>\u30dc\u30bf\u30f3\u306e\u30ea\u30f3\u30af\u5148\u3067\u3042\u308b\/debug.html<\/code>\u30da\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u307f\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u3092\u958b\u304f\u3068\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u5185\u90e8\u3067PhantomJS<\/code>\u7528\u306b\u8a2d\u5b9a\u3057\u305f\u306e\u3068\u540c\u3058\u30c6\u30b9\u30c8\u304c\u8d70\u3063\u3066\u3044\u308b\u306e\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n

\u30ed\u30b8\u30c3\u30af\u306b\u307e\u3064\u308f\u308b\u30c6\u30b9\u30c8\u306e\u307f\u3092\u66f8\u3044\u3066\u3044\u308b\u5834\u5408\u3001\u3053\u306e\u30da\u30fc\u30b8\u306b\u306f\u4f55\u3082\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002
\n\u3057\u304b\u3057\u30c6\u30b9\u30c8\u5bfe\u8c61\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092window<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u633f\u5165\u3057\u3066\u3042\u3052\u308b\u3053\u3068\u3067\u3001\u5b9f\u969b\u306b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u30d6\u30e9\u30a6\u30b6\u306b\u63cf\u753b\u3057\u3066\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n

\u3053\u3093\u306a\u611f\u3058\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092window<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u6e21\u3057\u3066\u3042\u3052\u307e\u3059\u3002<\/p>\n

\/\/ Angular.js(1.3)\u3067\u306e\u30b3\u30fc\u30c9\u4f8b\nfunction createAngularElement(componentTag) {\n  var element;\n  inject(function ($compile, $rootScope) {\n    var scope = $rootScope.$new();\n    element = angular.element(componentTag);\n    $compile(element)(scope);\n  });\n\n  document.querySelector('body').appendChild(element);\n  return element;\n}\nconst element = createAngularElement('<sample-component><\/sample-component>');\n\n\/\/ React.js\u3067\u306e\u30b3\u30fc\u30c9\u4f8b\nfunction createReactElement(virtualDOM) {\n  const element = document.createElement('div');\n  ReactDOM.render(virtualDOM, element);\n\n  document.querySelector('body').appendChild(element);\n  return element;\n}\nconst element = createAngularElement(<SampleComponent \/>);<\/code><\/pre>\n

\u3053\u306e\u6642\u3001return element<\/code>\u306a\u3069\u3067\u4f5c\u6210\u3057\u305f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306eDOM\u3078\u306e\u53c2\u7167\u3092\u3001\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u306b\u6e21\u3057\u3066\u3042\u3052\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002
\nwindow<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u76f4\u63a5\u30c6\u30b9\u30c8\u5bfe\u8c61\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092append\u3057\u3066\u3044\u304f\u306e\u3067\u3001\u30c6\u30b9\u30c8\u6bce\u306b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3078\u306e\u53c2\u7167\u3082\u5206\u3051\u3066\u4fdd\u6301\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308b\u304b\u3089\u3067\u3059\u3002
\n(\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306bid<\/code>\u8981\u7d20\u3092\u6307\u5b9a\u3057\u3066getElementById<\/code>\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u3001id<\/code>\u4ed8\u304d\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u3044\u304f\u3064\u3082document<\/code>\u306b\u63cf\u753b\u3055\u308c\u308b\u306e\u3067id<\/code>\u306f\u4e00\u610f\u3067\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059)<\/p>\n

\u5b9f\u969b\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u306f\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n

describe('\u30b5\u30f3\u30d7\u30eb\u306e\u30c6\u30b9\u30c8', function() {\n  var element;\n  beforeEach(function() {\n    element = createAngularElement('<sample-component><\/sample-component>');\n    \/\/ element = createAngularElement(<SampleComponent \/>);\n  });\n  it('\u30b5\u30f3\u30d7\u30eb\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u63cf\u753b\u3067\u304d\u308b', function() {\n    expect(element.querySelector('sample-component').length).toBe(1);\n  });\n});<\/code><\/pre>\n

\u3053\u308c\u3067\u4efb\u610f\u306e\u30d6\u30e9\u30a6\u30b6\u306ehttp:\/\/localhost:9876\/debug.html<\/code>\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u30b5\u30f3\u30d7\u30eb\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u63cf\u753b\u3055\u308c\u3066\u3044\u307e\u3059\u3002
\n(\u3082\u3061\u308d\u3093\u5185\u90e8\u3067\u306f\u30c6\u30b9\u30c8\u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u307e\u3059)
\n\u3053\u308c\u3067\u3069\u3093\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u63cf\u753b\u3055\u308c\u3066\u3044\u308b\u306e\u304b\u3001\u78ba\u4fe1\u3092\u6301\u3063\u3066\u30c6\u30b9\u30c8\u51fa\u6765\u307e\u3059\uff01
\n\u3082\u3061\u308d\u3093\u3001click<\/code>\u306a\u3069\u306e\u5404\u7a2e\u30a4\u30d9\u30f3\u30c8\u3082\u767a\u884c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n

\u305d\u306e\u4ed6<\/h2>\n

\u30a2\u30bb\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u30d7\u30ed\u30ad\u30b7\u8a2d\u5b9a<\/h3>\n

karma<\/code>\u306e\u6982\u8981\u3092\u8aac\u660e\u3059\u308b\u6bb5\u3067\u3001karma<\/code>\u306e\u7acb\u3066\u308b\u30c6\u30b9\u30c8\u30b5\u30fc\u30d0\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9<\/code>\u304c\u633f\u5165\u3055\u308c\u3066\u3044\u308b\u3068\u3044\u3046\u4ed5\u7d44\u307f\u3092\u8aac\u660e\u3057\u307e\u3057\u305f\u3002
\n\u5225\u306e\u8a00\u3044\u65b9\u3092\u3059\u308b\u3068\u3001CSS\u30d5\u30a1\u30a4\u30eb\u3084\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306a\u3093\u304b\u306f\u305d\u306e\u307e\u307e\u3067\u306f\u30c6\u30b9\u30c8\u74b0\u5883\u3067\u8aad\u307f\u8fbc\u307e\u308c\u306a\u3044\u3068\u3044\u3046\u4e8b\u3067\u3059\u3002<\/p>\n

\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30b9\u30bf\u30a4\u30eb\u3082\u5408\u308f\u305b\u3066\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u3053\u3093\u306a\u611f\u3058\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u3066\u3042\u3052\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n

\/\/ karma.conf.js\nfiles: [\n  'test\/*.js',\n  'app\/style.css',\n  { pattern: 'app\/img\/*', watched: false, included: false, served: true, nocache: false },\n],\nproxies: {\n  '\/img\/*': '\/base\/app\/img\/*',\n},<\/code><\/pre>\n

CSS\u30d5\u30a1\u30a4\u30eb\u306flink<\/code>\u30bf\u30b0\u3067\u3001\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306f\u30c6\u30b9\u30c8\u30b5\u30fc\u30d0\u306e\/base\/app\/img\/*<\/code>\u3068\u3057\u3066\u8aad\u307f\u8fbc\u307e\u308c\u305f\u5f8c\u3001\/img\/*<\/code>\u3068\u3057\u3066karma<\/code>\u304c\u4e2d\u7d99\u3057\u3066\u8aad\u307f\u8fbc\u3093\u3067\u304f\u308c\u307e\u3059\u3002
\n(font<\/code>\u30d5\u30a1\u30a4\u30eb\u306a\u3093\u304b\u3082\u540c\u3058\u611f\u3058\u3067\u3059)<\/p>\n

DOM\u64cd\u4f5c\u30a4\u30d9\u30f3\u30c8\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3<\/h3>\n

\u524d\u8ff0\u306e\u901a\u308a\u3001click<\/code>\u30a4\u30d9\u30f3\u30c8\u306a\u3093\u304b\u306f\u751fDOM API\u3067\u30c6\u30b9\u30c8\u3092\u66f8\u304f\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002
\n\u305f\u3060\u3057\u3001\u30c6\u30ad\u30b9\u30c8\u306e\u5165\u529b\u3084\u30c9\u30e9\u30c3\u30b0\u306a\u3093\u304b\u306e\u30a4\u30d9\u30f3\u30c8\u306f(\u7121\u7406\u3067\u306f\u306a\u3044\u3067\u3059\u304c)\u66f8\u304f\u306e\u304c\u9762\u5012\u3067\u3059\u3002<\/p>\n

\u305d\u3053\u3067DOM\u64cd\u4f5c\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u91d1\u5b57\u5854jQuery<\/code>\u3092\u4f7f\u3044\u307e\u3059\u3002
\n\u4f8b\u3048\u3070\u30c6\u30ad\u30b9\u30c8\u5165\u529b\u64cd\u4f5c\u3092\u30c6\u30b9\u30c8\u3057\u305f\u3044\u306e\u3067\u3042\u308c\u3070\u3001jQuery<\/code>\u306b\u7d44\u307f\u8fbc\u307f\u6e08\u307f\u306e\u30a4\u30d9\u30f3\u30c8($('sample-component').val('\u30c6\u30ad\u30b9\u30c8\u5165\u529b').trigger('input')<\/code>)\u3092\u767a\u706b\u3055\u305b\u307e\u3059\u3002<\/p>\n

\u307e\u305f\u3001jQuery<\/code>\u672c\u4f53\u304c\u767a\u706b\u3067\u304d\u306a\u3044(\u3057\u3065\u3089\u3044)\u30a4\u30d9\u30f3\u30c8\uff08\u4f8b\u3048\u3070\u30de\u30a6\u30b9\u30c9\u30e9\u30c3\u30b0\uff09\u306f\u3001jQuery<\/code>\u304c\u81ea\u8eab\u306e\u30c6\u30b9\u30c8\u306e\u305f\u3081\u306b\u4f7f\u3063\u3066\u3044\u308b\u30e9\u30a4\u30d6\u30e9\u30ea(\u30d7\u30e9\u30b0\u30a4\u30f3)jquery-simulate<\/code><\/a>\u3092\u4f7f\u7528\u3059\u308b\u306e\u304c\u4fbf\u5229\u3067\u3059\u3002<\/p>\n

\u3053\u3093\u306a\u611f\u3058\u3067\u30b7\u30df\u30e5\u30ec\u30fc\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n

$('sample-component').simulate('drag', { dx: 15, dy: 0 });<\/code><\/pre>\n

\u307e\u3068\u3081<\/h2>\n

\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u30d6\u30e9\u30a6\u30b6\u306b\u5b9f\u969b\u306b\u63cf\u753b\u3057\u3064\u3064\u30c6\u30b9\u30c8\u3059\u308b\u624b\u6cd5\u306b\u3064\u3044\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001\u3044\u304b\u304c\u3067\u3057\u305f\u3067\u3057\u3087\u3046\u304b\u3002
\n\u30c6\u30b9\u30c8\u30d5\u30a1\u30fc\u30b9\u30c8\u3067\u4f5c\u308b\u306e\u3067\u3001\u8cac\u4efb\u304c\u5c0f\u3055\u304f\u30b7\u30f3\u30d7\u30eb\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f5c\u308a\u3084\u3059\u3044\u304f\u3001\u304b\u3064CSS\u3082\u4ed6\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u4f9d\u5b58\u305b\u305a\u306b\u4f5c\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u4f5c\u6210\u624b\u6cd5\u3068\u3057\u3066\u306f\u308f\u308a\u3068\u6c17\u306b\u5165\u3063\u3066\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n

\u307e\u305f\u3001DOM\u30d9\u30fc\u30b9\u3067\u306e\u30c6\u30b9\u30c8\u306a\u306e\u3067\u3001FW\u30fb\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u7e1b\u3089\u308c\u305a\u30c6\u30b9\u30c8\u3067\u304d\u308b(\u3044\u3064\u3067\u3082\u540c\u3058\u611f\u3058\u306b\u66f8\u3051\u308b)\u3068\u3053\u308d\u3082\u3046\u308c\u3057\u3044\u3067\u3059\u3002
\n(\u5f0a\u793e\u306eReact.js<\/code>\u3092\u5c0e\u5165\u3057\u3066\u3044\u308b\u5225\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3082\u540c\u69d8\u306e\u624b\u6cd5\u3067\u30c6\u30b9\u30c8\u3092\u66f8\u3044\u3066\u3044\u307e\u3059)<\/p>\n

\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30d9\u30fc\u30b9\u306e\u30c6\u30b9\u30c8\u306f\u3001\u30b5\u30a4\u30ba\u3092\u5c0f\u3055\u304f\u30b7\u30f3\u30d7\u30eb\u306b\u307e\u3068\u3081\u3084\u3059\u3044\u306e\u3067\u3001\u30c6\u30b9\u30c8\u5909\u66f4\u306e\u8ca0\u8377\u304c\u5c11\u306a\u3044(\u8ca0\u50b5\u5316\u3057\u3065\u3089\u3044)\u3068\u3044\u3046\u30e1\u30ea\u30c3\u30c8\u3082\u3042\u308a\u3001\u4eca\u5f8c\u3082\u3053\u306e\u624b\u6cd5\u3092\u53d6\u308a\u5165\u308c\u3066\u30c6\u30b9\u30c8\u3092\u66f8\u3044\u3066\u3044\u304d\u305f\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n

\u4eca\u56de\u3054\u7d39\u4ecb\u3057\u305fTDD\u624b\u6cd5\u3092\u53d6\u308a\u5165\u308c\u3001\u54c1\u8cea\u306e\u898b\u3048\u308b\u5316\u3092\u5b9f\u73fe\u3057\u305f\u30b5\u30fc\u30d3\u30b9\u958b\u767a<\/a>\u3092\u3054\u691c\u8a0e\u306e\u4f01\u696d\u69d8\u306f\u3001\u662f\u975eMMM\u306b\u3054\u76f8\u8ac7\u4e0b\u3055\u3044\u307e\u305b\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u9ad8\u3044\u3068\u3053\u308d\u304c\u30c0\u30e1\u306a\u5c0f\u98fc\u3067\u3059\u3002\u518d\u6765\u9031\u98db\u884c\u6a5f\u306b\u4e57\u308a\u307e\u3059\u3002 \u3055\u3066\u3001\u5148\u65e5Angular1.x\u7cfb\u306eSPA\u306b\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3092\u5c0e\u5165\u3057\u305f\u8a71\u3067\u3001\u4f5c\u6210\u4e2d\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3060\u3051\u3092\u30d6\u30e9\u30a6\u30b6\u306b\u63cf\u753b\u3057\u3066\u3001TDD\u3063\u307d\u304f\u958b\u767a\u3092\u9032\u3081\u3066\u3044\u304f\u624b\u6cd5\u306b\u3064\u3044\u3066\u89e6\u308c\u307e\u3057\u305f\u3002 \u4eca\u56de\u306f\u305d\u306e\u5177\u4f53\u7684\u306a\u624b\u6cd5\u306b\u3064\u3044\u3066\u89e6\u308c\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 (\u3042\u307e\u308a\u985e\u4f3c\u306e\u8a18\u4e8b\u3092\u898b\u305f\u3053\u3068\u304c\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u3082\u3057\u304b\u3057\u305f\u3089\u8a18\u4e8b\u306b\u3059\u308b\u307e\u3067\u3082\u306a\u3044\u3053\u3068\u3060\u3063\u305f\u308a\u3057\u3066…) \u30d8\u30c3\u30c9\u30ec\u30b9\u306a\u30c6\u30b9\u30c8 […]<\/p>\n","protected":false},"author":1,"featured_media":684,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[77,166],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/264"}],"collection":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/comments?post=264"}],"version-history":[{"count":1,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/264\/revisions"}],"predecessor-version":[{"id":3447,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/264\/revisions\/3447"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media?parent=264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/categories?post=264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/tags?post=264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}