Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test upgrade #779

Merged
merged 90 commits into from
May 12, 2024
Merged
Show file tree
Hide file tree
Changes from 69 commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
1f64f19
Update .gitignore
aashu16 May 25, 2023
fb8cced
Install and configure vitest, update test script
aashu16 May 25, 2023
9626335
Upgrade @tl/react and @tl/user-event
aashu16 May 25, 2023
e0ba05b
Update test_util functions to use tl and vitest
aashu16 May 25, 2023
02b4152
Update input_numeric_format
aashu16 Jun 4, 2023
ece15cd
Update tests in input.spec (WIP)
aashu16 Jun 4, 2023
1cf0453
Update tests in keypress_and_caret (WIP)
aashu16 Jun 4, 2023
5f00fe9
Rename file to input_numeric_format.spec.jsx
aashu16 Jun 28, 2023
4e26d9a
Convert more tests in input.spec.jsx
aashu16 Jun 28, 2023
60b347d
Add missing dependencies
aashu16 Jun 28, 2023
6c88127
Use 'renderHook' from @testing-library/react
aashu16 Jun 29, 2023
b36deec
Add alternatives for tests manipulating state
aashu16 Jun 29, 2023
14dc8c8
Update some of the tests using mocks
aashu16 Jun 29, 2023
d7dbf17
Update remaining tests in input.spec
aashu16 Jul 2, 2023
f30ace6
Change keypress_and_caret.spec file type - js to jsx
aashu16 Jul 2, 2023
5912b0f
Update tests in keypress_and_caret.spec
aashu16 Jul 2, 2023
028b0fb
Update simulateFocusEvent function
aashu16 Jul 2, 2023
e1bb4e4
Upgrade vitest
aashu16 Jul 3, 2023
0194425
Update more tests in keypress_and_caret
aashu16 Jul 3, 2023
a0698ac
Change file type - js to jsx
aashu16 Jul 3, 2023
cf41347
Update tests in format_as_text.spec
aashu16 Jul 3, 2023
ff6f7fc
Add data-testid attribute in `displayText` span
aashu16 Jul 3, 2023
1e03f76
Remove karma, enzyme from dependencies
aashu16 Jul 16, 2023
651faa5
Merge branch 'master' into dev
s-yadav Aug 5, 2023
825c87d
Merge branch 'master' into dev
aashu16 Sep 9, 2023
d0c8814
tsconfig: Add `test/library/utils` to `include`
aashu16 Sep 9, 2023
06de10f
Add tests for applyThousandSeparator
aashu16 Sep 9, 2023
c8389c4
Add tests for roundToPrecision
aashu16 Sep 9, 2023
a2ebb9f
Update and move tests for toNumericString
aashu16 Sep 9, 2023
66c5df2
Add tests for splitDecimal
aashu16 Sep 9, 2023
9e82f15
Add tests for limitToScale
aashu16 Sep 9, 2023
6cd067d
Add tests for fixLeadingZero
aashu16 Sep 9, 2023
56e1685
Add tests for findChangedIndex
aashu16 Sep 9, 2023
f71cc8d
Add tests for findChangeRange
aashu16 Sep 9, 2023
a90243d
Add tests for numeric_format's getCaretBoundary
aashu16 Sep 9, 2023
9977919
Add tests for getCaretPosInBoundary
aashu16 Sep 9, 2023
0b6b90b
Add tests for getCaretPosition
aashu16 Sep 9, 2023
1f53d49
Update vite(st) config to include ts files
aashu16 Sep 10, 2023
85c496a
Extract shared types for table driven unit testing
aashu16 Sep 10, 2023
d0b1b4c
Add tests for PatternFormat's getCaretBoundary
aashu16 Oct 19, 2023
a122e06
Update util tests to use shared common types
aashu16 Oct 19, 2023
5a2dfa6
Rename js files to ts in test/library/utils
aashu16 Oct 20, 2023
0a09aff
Update remaining test files to use shared types
aashu16 Oct 20, 2023
dd09693
Remove data-testid attr in renderText span
aashu16 Feb 29, 2024
bd88d0b
Remove dangling assignment and reformat
aashu16 Feb 29, 2024
f9bfbba
Update to migrate test added in 30461f7
aashu16 Feb 29, 2024
a2054dc
Update testing dependencies
aashu16 Mar 1, 2024
e051e34
Update tests to use simulateKeyInput
aashu16 Mar 1, 2024
7fc8288
Remove usage of removed helper function
aashu16 Mar 2, 2024
789c992
Remove redundant tests
aashu16 Mar 2, 2024
523cd7c
Unskip tests and remove todos
aashu16 Mar 2, 2024
c258860
Replace wrapper components with rerendering
aashu16 Mar 2, 2024
bf0c31a
Fix import in test_util
aashu16 Mar 2, 2024
772a432
Simplify and improve simulateKeyInput helper
aashu16 Mar 2, 2024
6046396
Remove more skipped tests
aashu16 Mar 2, 2024
0076fd0
Replace instance of user.type with simulateKeyInput
aashu16 Mar 2, 2024
4ad5222
Resolve remaining comments from #779
aashu16 Mar 3, 2024
f93405c
Fix missing import and incorrect function call
aashu16 Mar 3, 2024
7f5abad
Merge updates from 'master'
aashu16 Mar 3, 2024
e304586
Remove some refs to remnants of enzyme based tests
aashu16 Mar 4, 2024
9cc4a99
Add mock 'isAllowed' implementation in test
aashu16 Mar 4, 2024
68cb95b
Update test to wait for onFocus cb to be called
aashu16 Mar 4, 2024
656023e
Add options parameter to simulateKeyInput
aashu16 Mar 5, 2024
ae2e50f
Fix more tests in keypress_and_caret
aashu16 Mar 5, 2024
8254a3a
Add simulatePaste function and update tests
aashu16 Mar 5, 2024
d83cd01
Remove superfluous imports and todo comments
aashu16 Mar 5, 2024
561cd12
Uncomment tests in input_numeric_format
aashu16 Mar 6, 2024
aa7ef41
Merge branch 'master' into dev
s-yadav Mar 24, 2024
705ddc2
Fix incorrect test
s-yadav Mar 24, 2024
0ed4d59
Add selectionStart and selectionEnd on simulatePaste method
s-yadav Mar 24, 2024
440ab3b
Replace existing assertion with a positive one
aashu16 Mar 15, 2024
8512532
Simplify simulateKeyInput function
aashu16 Mar 15, 2024
58332a9
Remove clearInput from a test
aashu16 Mar 15, 2024
6739eca
Add more helper functions to simulate user actions
aashu16 Mar 16, 2024
c3668f1
Update tsconfig.json
aashu16 Mar 16, 2024
6dd234f
Add simulateTripleClick function and fix test
aashu16 Mar 25, 2024
9fb4bb9
Update simulatePaste internals and update test
aashu16 Mar 25, 2024
7f32707
Add helper to click on input to get focus
aashu16 Mar 25, 2024
cd3feb8
Remove duplicate test
aashu16 Mar 25, 2024
7187a07
Update test to use fake timers
aashu16 Apr 5, 2024
6645690
Skip failing tests, correct assertion
aashu16 Apr 6, 2024
708dd27
Update simulateKeyInput when chars are selected
aashu16 Apr 6, 2024
56ced22
Temporarily remove failing fix-leading-zero tests
aashu16 Apr 6, 2024
9f23988
Update vite config to not include `test/types` dir
aashu16 Apr 6, 2024
91e8fd2
Update CI action
aashu16 Apr 6, 2024
e7b1af4
fix build
s-yadav May 11, 2024
8c0b056
Merge branch 'master' into dev
s-yadav May 11, 2024
a44af92
- Update test dependencies
s-yadav May 12, 2024
824bcd9
Remove unused variables from test files.
s-yadav May 12, 2024
ca97625
Remove .only from test.
s-yadav May 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
node_modules/**/*

.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

*.swp
.DS_Store
*.log
Expand Down
Loading
Loading