cd /workspace/wp-calypso && rm client/post-editor/editor-categories-tags/test/accordion-expanded-state.jsx && mkdir -p client/post-editor/editor-drawer/test && cat > client/post-editor/editor-drawer/test/index.jsx <<'EOF'
/**
 * @format
 * @jest-environment jsdom
 */
/**
 * External dependencies
 */
import { mount } from 'enzyme';
import React from 'react';
/**
 * Internal dependencies
 */
import EditorDrawer from 'post-editor/editor-drawer';
jest.mock( 'react-redux', () => ( {
connect: () => Component => Component,
} ) );
jest.mock( 'i18n-calypso', () => ( {
localize: Component => Component,
} ) );
jest.mock( 'components/data/query-jetpack-plugins', () => require( 'components/empty-component' ) );
jest.mock( 'components/data/query-post-types', () => require( 'components/empty-component' ) );
jest.mock( 'components/data/query-site-settings', () => require( 'components/empty-component' ) );
jest.mock( 'components/async-load', () => require( 'components/empty-component' ) );
jest.mock( 'post-editor/edit-post-status', () => require( 'components/empty-component' ) );
jest.mock( 'post-editor/editor-drawer/taxonomies', () => require( 'components/empty-component' ) );
jest.mock( 'post-editor/editor-drawer/page-options', () => require( 'components/empty-component' ) );
jest.mock( 'post-editor/editor-more-options/copy-post', () => require( 'components/empty-component' ) );
jest.mock( 'post-editor/editor-categories-tags/accordion', () => {
const React = require( 'react' );
const Accordion = require( 'components/accordion' ).default || require( 'components/accordion' );
return function CategoriesTagsAccordion() {

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js
return (

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js
<Accordion

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js
title="Categories & Tags"

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js
className="editor-categories-tags__accordion"

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js
e2eTitle="categories-tags"

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh  <response clipped><NOTE>Due to the max output limit, only part of the full response has been shown to you.</NOTE>json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js
expect( getCategoriesAccordion( wrapper ) ).toHaveLength( 1 );

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js
expect( isCategoriesAccordionExpanded( wrapper ) ).toBe( true );
} );
test( 'does not show categories accordion for pages', () => {

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js
const wrapper = render( {

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js
type: 'page',

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js
typeObject: {

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js
supports: {},

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js
},

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js
} );

.circleci/               .editorconfig            .eslintignore            .git/                    .github/                 .npmrc                   .postcssrc.json          .rtlcssrc                CODE-OF-CONDUCT.md       Dockerfile               README.md                Vagrantfile-boot2docker  babel.config.js          cached-requests.json     config/                  env-config.sh            inline-imports.js        node_modules/            package.json             renovate.json            test/                    webpack.config.node.js
.dockerignore            .eslines.json            .eslintrc.js             .gitattributes           .gitignore               .nvmrc                   .prettierrc              .stylelintrc             CREDITS.md               LICENSE.md               Vagrantfile              assets/                  bin/                     client/                  docs/                    index.js                 jsconfig.json            npm-shrinkwrap.json      public/                  server/                  webpack.config.js
expect( getCategoriesAccordion( wrapper ) ).toHaveLength( 0 );
} );
} );
EOF
[The command completed with exit code 0.]
[Current working directory: /workspace/wp-calypso]
[Python interpreter: /usr/bin/python]
[Command finished with exit code 0]