emulsify-ds / emulsify-drupal

Drupal theme built with Storybook and Webpack
GNU General Public License v2.0
92 stars 42 forks source link

setupTwig test is failing #251

Closed openjck closed 2 years ago

openjck commented 2 years ago

emulsify version (see releases): 4.1.0

node version: v14.17.1

npm (or yarn) version: yarn 1.22.18

What you did:

yarn test

What happened:

FAIL .storybook/setupTwig.test.js
  ● setupTwig › exports emulsifys namespaces

    expect(received).toEqual(expected) // deep equality

    - Expected  - 4
    + Received  + 5

      Object {
    -   "atoms": "../components/01-atoms",
    -   "molecules": "../components/02-molecules",
    -   "organisms": "../components/03-organisms",
    -   "templates": "../components/04-templates",
    +   "atoms": ".././components/01-atoms",
    +   "base": ".././components/00-base",
    +   "molecules": ".././components/02-molecules",
    +   "organisms": ".././components/03-organisms",
    +   "pages": ".././components/04-pages",
      }

      26 |       atoms: '../components/01-atoms',
      27 |       molecules: '../components/02-molecules',
    > 28 |       organisms: '../components/03-organisms',
         |                  ^
      29 |       templates: '../components/04-templates',
      30 |     });
      31 |   });

      at Object.<anonymous> (.storybook/setupTwig.test.js:28:18)

Reproduction repository (if necessary):

Problem description:

Suggested solution:

Among other things, it looks like the test expects the directory to be named 04-templates when setupTwig.js names it 04-pages.

amazingrando commented 2 years ago

Closed as old. Reopen and ping me at @amazingrando if you're still looking for help.