{"id":315294,"date":"2020-12-22T09:00:15","date_gmt":"2020-12-22T09:00:15","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=315294"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2020-12-22T09:00:15","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=315294","title":{"rendered":"\u0421\u0447\u0438\u0442\u0430\u0435\u043c code \u0441overage \u0441 cypress"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/371\/19c\/282\/37119c28218473e83862f08d1dfc8c95.PNG\" width=\"1898\" height=\"511\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0438\u0432\u0435\u0442 \u0432\u0441\u0435\u043c, \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c code coverage \u043a angular\/react \u043f\u0440\u043e\u0435\u043a\u0442\u0443. \u0412 \u0441\u0435\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u044b\u0441\u043a\u0430\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u0438 \u0441\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0447\u0442\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u0441 angular \u044d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c code coverage \u043a 11 \u0432\u0435\u0440\u0441\u0438\u0438 angular (\u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 7\/8 \u2026 \u044d\u0442\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u043b\u0443\u0447\u0448\u0435 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0441\u044f)<\/p>\n<h2>Angular<\/h2>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0432\u0441\u0435&nbsp;\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438<\/p>\n<pre><code>npm i -D ngx-build-plus npm i -D istanbul-instrumenter-loader npm install -D @cypress\/code-coverage<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0435\u0434\u0435\u043c&nbsp;\u0441 protractor \u043d\u0430 cypress<\/p>\n<pre><code>ng add @briebug\/cypress-schematic<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b cypress\/coverage.webpack.js<\/p>\n<pre><code>module.exports = {   module: {     rules: [       {         test: \/\\.(js|ts)$\/,         loader: 'istanbul-instrumenter-loader',         options: { esModules: true },         enforce: 'post',         include: require('path').join(__dirname, '..', 'src'),         exclude: [           \/\\.(e2e|spec)\\.ts$\/,           \/node_modules\/,           \/(ngfactory|ngstyle)\\.js\/         ]       }     ]   } };<\/code><\/pre>\n<p>\u041e\u0431\u043d\u043e\u0432\u0438\u043c \u043d\u0430\u0448 angular.jso<\/p>\n<pre><code>\"serve\": {   \"builder\": \"ngx-build-plus:dev-server\",   \"options\": {     \"browserTarget\": \"angular-registration-login-example:build\",     \"extraWebpackConfig\": \".\/cypress\/coverage.webpack.js\"   } },<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043a cypress\/support\/index.js<\/p>\n<pre><code>import '@cypress\/code-coverage\/support';<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043a cypress\/plugins\/index.js<\/p>\n<pre><code>module.exports = (on, config) =&gt; {   require('@cypress\/code-coverage\/task')(on, config)   \/\/ IMPORTANT to return the config object   \/\/ with the any changed environment variables   return config }<\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0432 console \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f window.__coverage__<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c43\/be2\/79e\/c43be279ea9c0b5459e4183603468825.png\" width=\"1020\" height=\"143\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u0435\u0441\u0442\u044b npm run cy:open \/ cy:run<\/p>\n<pre><code>\"cy:open\": \"cypress open\", \"cy:run\": \"cypress run\",<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u0441\u0442\u044b \u043f\u0440\u043e\u0439\u0434\u0443\u0442 \u0432 \u043a\u043e\u0440\u043d\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u043f\u0430\u043f\u043a\u0430 coverage<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f56\/425\/cba\/f56425cbaeaee28dbff02620aa8f48c4.PNG\" width=\"409\" height=\"514\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0432 \u0444\u0430\u0439\u043b coverage\/lcov-report\/index.html<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a5f\/057\/bcd\/a5f057bcd6c1204801b19ab728bf02b5.PNG\" width=\"1898\" height=\"511\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u043b\u0438\u043a\u0430\u044f \u043f\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0441\u044f \u0438 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437, \u0430 \u043a\u0430\u043a\u043e\u0439 \u0435\u0449\u0435 \u043d\u0435 \u043f\u043e\u043a\u0440\u044b\u0442 \u0442\u0435\u0441\u0442\u0430\u043c\u0438<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/da2\/a09\/1fd\/da2a091fd1226d3aafbb490b07323d4a.PNG\" width=\"847\" height=\"455\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0430\u043c&nbsp;\u043f\u0440\u043e\u0435\u043a\u0442&nbsp;\u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0442\u0443\u0442: <a href=\"https:\/\/github.com\/NikolayKozub\/angular-coverage-cypress\" rel=\"noopener noreferrer nofollow\"><u>https:\/\/github.com\/NikolayKozub\/angular-coverage-cypress<\/u><\/a><\/p>\n<h2>React <\/h2>\n<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438<\/p>\n<pre><code>npm i -D nyc babel-plugin-istanbul istanbul-lib-coverage @cypress\/code-coverage @cypress\/instrument-cra<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043a cypress\/plugins\/index.js<\/p>\n<pre><code>module.exports = (on, config) =&gt; {   require('@cypress\/code-coverage\/task')(on, config)      return config }<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043a cypress\/support\/index.js<\/p>\n<pre><code>import '@cypress\/code-coverage\/support'<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043a package.json<\/p>\n<pre><code>\"start\": \"react-scripts start\", \"start:coverage\": \"react-scripts -r @cypress\/instrument-cra start\",<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c .babelrc \u0432 \u043a\u043e\u0440\u0435\u043d\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/p>\n<pre><code>{   \"plugins\": [\"istanbul\"] }<\/code><\/pre>\n<p><a href=\"coverage\/lcov-report\/index.html\" rel=\"noopener noreferrer nofollow\">\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0442\u0435\u0441\u0442\u044b \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043e\u0442\u0447\u0435\u0442 <\/a><\/p>\n<p><a href=\"https:\/\/cs.cypress.io\/guides\/tooling\/code-coverage.html\" rel=\"noopener noreferrer nofollow\">\u0415\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0442\u0443\u0442 <\/a><\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/534370\/\"> https:\/\/habr.com\/ru\/post\/534370\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0438\u0432\u0435\u0442 \u0432\u0441\u0435\u043c, \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c code coverage \u043a angular\/react \u043f\u0440\u043e\u0435\u043a\u0442\u0443. \u0412 \u0441\u0435\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u044b\u0441\u043a\u0430\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u0438 \u0441\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0447\u0442\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u0441 angular \u044d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c code coverage \u043a 11 \u0432\u0435\u0440\u0441\u0438\u0438 angular (\u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 7\/8 \u2026 \u044d\u0442\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u043b\u0443\u0447\u0448\u0435 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0441\u044f)<\/p>\n<h2>Angular<\/h2>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0432\u0441\u0435&nbsp;\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438<\/p>\n<pre><code>npm i -D ngx-build-plus npm i -D istanbul-instrumenter-loader npm install -D @cypress\/code-coverage<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0435\u0434\u0435\u043c&nbsp;\u0441 protractor \u043d\u0430 cypress<\/p>\n<pre><code>ng add @briebug\/cypress-schematic<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b cypress\/coverage.webpack.js<\/p>\n<pre><code>module.exports = {   module: {     rules: [       {         test: \/\\.(js|ts)$\/,         loader: 'istanbul-instrumenter-loader',         options: { esModules: true },         enforce: 'post',         include: require('path').join(__dirname, '..', 'src'),         exclude: [           \/\\.(e2e|spec)\\.ts$\/,           \/node_modules\/,           \/(ngfactory|ngstyle)\\.js\/         ]       }     ]   } };<\/code><\/pre>\n<p>\u041e\u0431\u043d\u043e\u0432\u0438\u043c \u043d\u0430\u0448 angular.jso<\/p>\n<pre><code>\"serve\": {   \"builder\": \"ngx-build-plus:dev-server\",   \"options\": {     \"browserTarget\": \"angular-registration-login-example:build\",     \"extraWebpackConfig\": \".\/cypress\/coverage.webpack.js\"   } },<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043a cypress\/support\/index.js<\/p>\n<pre><code>import '@cypress\/code-coverage\/support';<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043a cypress\/plugins\/index.js<\/p>\n<pre><code>module.exports = (on, config) =&gt; {   require('@cypress\/code-coverage\/task')(on, config)   \/\/ IMPORTANT to return the config object   \/\/ with the any changed environment variables   return config }<\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0432 console \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f window.__coverage__<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u0435\u0441\u0442\u044b npm run cy:open \/ cy:run<\/p>\n<pre><code>\"cy:open\": \"cypress open\", \"cy:run\": \"cypress run\",<\/code><\/pre>\n<p>\u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u0441\u0442\u044b \u043f\u0440\u043e\u0439\u0434\u0443\u0442 \u0432 \u043a\u043e\u0440\u043d\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u043f\u0430\u043f\u043a\u0430 coverage<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0432 \u0444\u0430\u0439\u043b coverage\/lcov-report\/index.html<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u043b\u0438\u043a\u0430\u044f \u043f\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0441\u044f \u0438 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437, \u0430 \u043a\u0430\u043a\u043e\u0439 \u0435\u0449\u0435 \u043d\u0435 \u043f\u043e\u043a\u0440\u044b\u0442 \u0442\u0435\u0441\u0442\u0430\u043c\u0438<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0430\u043c&nbsp;\u043f\u0440\u043e\u0435\u043a\u0442&nbsp;\u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0442\u0443\u0442: <a href=\"https:\/\/github.com\/NikolayKozub\/angular-coverage-cypress\" rel=\"noopener noreferrer nofollow\"><u>https:\/\/github.com\/NikolayKozub\/angular-coverage-cypress<\/u><\/a><\/p>\n<h2>React <\/h2>\n<\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438<\/p>\n<pre><code>npm i -D nyc babel-plugin-istanbul istanbul-lib-coverage @cypress\/code-coverage @cypress\/instrument-cra<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043a cypress\/plugins\/index.js<\/p>\n<pre><code>module.exports = (on, config) =&gt; {   require('@cypress\/code-coverage\/task')(on, config)      return config }<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043a cypress\/support\/index.js<\/p>\n<pre><code>import '@cypress\/code-coverage\/support'<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043a package.json<\/p>\n<pre><code>\"start\": \"react-scripts start\", \"start:coverage\": \"react-scripts -r @cypress\/instrument-cra start\",<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c .babelrc \u0432 \u043a\u043e\u0440\u0435\u043d\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/p>\n<pre><code>{   \"plugins\": [\"istanbul\"] }<\/code><\/pre>\n<p><a href=\"coverage\/lcov-report\/index.html\" rel=\"noopener noreferrer nofollow\">\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0442\u0435\u0441\u0442\u044b \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043e\u0442\u0447\u0435\u0442 <\/a><\/p>\n<p><a href=\"https:\/\/cs.cypress.io\/guides\/tooling\/code-coverage.html\" rel=\"noopener noreferrer nofollow\">\u0415\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0442\u0443\u0442 <\/a><\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/534370\/\"> https:\/\/habr.com\/ru\/post\/534370\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-315294","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/315294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=315294"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/315294\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=315294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=315294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=315294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}