Skip to content

Commit

Permalink
Merge pull request #590 from davidjerleke/feature/#589
Browse files Browse the repository at this point in the history
Rewrite tests so they test the final product instead of isolated components
  • Loading branch information
davidjerleke authored Oct 8, 2023
2 parents c02be9b + 861f2a0 commit 3e6d9f0
Show file tree
Hide file tree
Showing 69 changed files with 11,352 additions and 1,741 deletions.
2 changes: 1 addition & 1 deletion packages/embla-carousel-auto-height/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"moduleResolution": "node",
"noEmit": true
},
"include": ["src"],
"include": ["src/index.ts", "src/components"],
"exclude": ["node_modules", "**/*.test.ts"]
}
2 changes: 1 addition & 1 deletion packages/embla-carousel-autoplay/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"moduleResolution": "node",
"noEmit": true
},
"include": ["src"],
"include": ["src/index.ts", "src/components"],
"exclude": ["node_modules", "**/*.test.ts"]
}
2 changes: 1 addition & 1 deletion packages/embla-carousel-class-names/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"moduleResolution": "node",
"noEmit": true
},
"include": ["src"],
"include": ["src/index.ts", "src/components"],
"exclude": ["node_modules", "**/*.test.ts"]
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion packages/embla-carousel-react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"moduleResolution": "node",
"jsx": "react"
},
"include": ["src"],
"include": ["src/index.ts", "src/components"],
"exclude": ["node_modules", "**/*.test.ts"]
}
2 changes: 1 addition & 1 deletion packages/embla-carousel-reactive-utils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"moduleResolution": "node",
"noEmit": true
},
"include": ["src"],
"include": ["src/index.ts", "src/components"],
"exclude": ["node_modules", "**/*.test.ts"]
}
2 changes: 1 addition & 1 deletion packages/embla-carousel-svelte/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"moduleResolution": "node",
"jsx": "react"
},
"include": ["src"],
"include": ["src/index.ts", "src/components"],
"exclude": ["node_modules", "**/*.test.ts"]
}
2 changes: 1 addition & 1 deletion packages/embla-carousel-vue/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"declarationDir": "./",
"moduleResolution": "node"
},
"include": ["src"],
"include": ["src/index.ts", "src/components"],
"exclude": ["node_modules", "**/*.test.ts"]
}
2 changes: 1 addition & 1 deletion packages/embla-carousel/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
transform: {
'^.+\\.(t|j)sx?$': 'ts-jest'
},
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
testRegex: '__tests__/.*\\.test\\.[jt]sx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testEnvironment: 'jsdom'
}
42 changes: 0 additions & 42 deletions packages/embla-carousel/src/__tests__/Alignment.test.ts

This file was deleted.

116 changes: 0 additions & 116 deletions packages/embla-carousel/src/__tests__/Axis.test.ts

This file was deleted.

Loading

0 comments on commit 3e6d9f0

Please sign in to comment.