mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
3957ffb324
* feat(project): adding cypress into element plus - Introduce Cypress to Element Plus - Add Action config for running Cypress automatically after workflow for build website done - Add a base case for button.spec.ts - Add cypress recordings and screenshots to gitignore - Add Cypress into tsconfig.json for global typing intelligence - Add scripts for running cypress * - Update cpress.yml syntax error * - Remove cypress from jest running collector
24 lines
795 B
JavaScript
24 lines
795 B
JavaScript
module.exports = {
|
|
globals: {
|
|
// work around: https://github.com/kulshekhar/ts-jest/issues/748#issuecomment-423528659
|
|
'ts-jest': {
|
|
diagnostics: {
|
|
ignoreCodes: [151001],
|
|
},
|
|
},
|
|
},
|
|
setupFiles: ['./jest.setup.js'],
|
|
testPathIgnorePatterns: ['/node_modules/', 'dist'],
|
|
modulePathIgnorePatterns: ['/node_modules/', 'dist', 'cypress'],
|
|
testEnvironment: 'jsdom',
|
|
transform: {
|
|
// Doesn't support jsx/tsx since sucrase doesn't support Vue JSX
|
|
'\\.(j|t)s$': '@sucrase/jest-plugin',
|
|
'^.+\\.vue$': 'vue-jest',
|
|
},
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
|
|
// u can change this option to a more specific folder for test single component or util when dev
|
|
// for example, ['<rootDir>/packages/components/input']
|
|
roots: ['<rootDir>'],
|
|
}
|