Skip to content

Commit 2e7d3ee

Browse files
committed
adjust ds to build, test and storybook
- Remove a lot of util - Rename .story to .stories - Rename .spec to .test - Remove storyshots - started to get unexpected token errors for code that tested just fine beforehand. Possibly related: storybookjs/storybook#9470 - Adjusted jest.config.js to add esModuleInterop. Previously was getting Cannot read createElement of undefined errors. A description: testing-library/react-testing-library#374
1 parent b20e442 commit 2e7d3ee

File tree

15 files changed

+1180
-199
lines changed

15 files changed

+1180
-199
lines changed

jest.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export default {
22
preset: 'ts-jest',
3-
testEnvironment: 'node',
3+
setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'],
4+
testEnvironment: 'jsdom',
45
globals: {
56
'ts-jest': {
67
diagnostics: {

0 commit comments

Comments
 (0)