Skip to content

To prove that all these techs can play nicely. The answer: yes. The caveat: this is a very simple environment.

Notifications You must be signed in to change notification settings

jaketrent/ts-esm-jest-storybook-storyshots-babel-integration

Repository files navigation

TS, ESM, Jest, Storybook, Storyshots, Babel, React Combo POC

Tech stack

  • TypeScript - src
  • Babel - compiles TS and JSX for test
  • ES Module - destination compilation
  • Jest - testing
  • React - ui component library
  • Storybook - visual component development
  • Storyshots - DOM regression snapshots

Features

  • package.json
    • main=dist/index.js
    • module=dist/index.js
    • type=module
    • sideEffects=false
  • src/
    • *.ts files
    • *.test.ts files
    • *.stories.ts files
  • dist/
  • tsconfig.js
    • module=ES2020 - module system
    • target=ES5 - other language features
  • .storybook
    • Used for storybook
    • Has a main.cjs file so stories can be loaded
  • .storybook-storyshots
    • Used for storyshots in test
    • Has a main.js file so stories can be located during test

See also

https://github.com/jaketrent/ts-esm-jest-react-storybook-poc - No storyshots, ts-jest instead of babel

About

To prove that all these techs can play nicely. The answer: yes. The caveat: this is a very simple environment.

Topics

Resources

Stars

Watchers

Forks