Skip to content

Commit

Permalink
Set up component tests + Add Calendar tests (wix#1351)
Browse files Browse the repository at this point in the history
* Add component tests

* Add .eslintcache to .gitignore

* Change date

* More tests

* Npmignore test files

* Remove unused devDependency

* Add more tests

* Add header driver

* Add basic day driver

* Move calendar driver to a new file

* Allow overriding testID

* Pass string instead of XDate

* Return text nodes in getDayNames

* Unskip accessibility label tests

* Disable `onLongPress` if touch events are disabled
  • Loading branch information
emilisb authored Dec 3, 2020
1 parent 56125c8 commit b505739
Show file tree
Hide file tree
Showing 21 changed files with 808 additions and 83 deletions.
13 changes: 7 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,29 @@ module.exports = {
env: {
es6: true,
node: true,
'jest/globals': true
},
globals: {
expect: true,
it: true,
describe: true,
describe: true
},
extends: ['eslint:recommended'],
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true,
jsx: true
},
sourceType: 'module',
sourceType: 'module'
},
plugins: ['react'],
plugins: ['react', 'jest'],
rules: {
'linebreak-style': ['error', 'unix'],
'no-unused-vars': 2,
'object-curly-spacing': ['error', 'never'],
semi: ['error', 'always'],
'react/jsx-uses-react': 2,
'react/jsx-uses-vars': 2,
},
'react/jsx-uses-vars': 2
}
};
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ fastlane/screenshots

# CocoaPods
ios/Pods

.eslintcache
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
.idea
.github
src/**/*.spec.js
src/**/*.driver.js
src/**/driver.js
example/
demo/
ios/
android/
index.android.js
index.ios.js
jest-setup.js

.nvmrc
.*ignore
Expand All @@ -19,6 +22,7 @@ index.ios.js

e2e
spec
test

ISSUE_TEMPLATE.md

Expand Down
Loading

0 comments on commit b505739

Please sign in to comment.