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: Create @storybook/test package based on vitest #24392

Merged
merged 45 commits into from
Oct 27, 2023
Merged
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
29f8596
Create @storybook/test package
kasperpeulen Aug 17, 2023
f0d68a1
Replace expect (from jest) with @vitest/expect
kasperpeulen Aug 25, 2023
97350aa
Fix build
kasperpeulen Aug 25, 2023
daeffb5
Move testing library to test package + some improvements
kasperpeulen Sep 19, 2023
1f02904
Add testing library assertion on expect
kasperpeulen Sep 19, 2023
b406b6d
Make sure synchronous methods are always promises, even in the first run
kasperpeulen Sep 20, 2023
76c109a
Revert mistake
kasperpeulen Sep 20, 2023
d034a44
Clear spies and instrument spies by event handler name
kasperpeulen Sep 20, 2023
e6b0f0a
Show deprecation message
kasperpeulen Sep 20, 2023
9d88027
Revert making get* method's promises and make sure we instrument `not`
kasperpeulen Sep 21, 2023
ea2c3c3
fix yarn lock
yannbf Sep 21, 2023
33cbcae
Fix eslint
kasperpeulen Sep 21, 2023
6d19861
Comment out deprecation for now
kasperpeulen Sep 22, 2023
0b76716
Fix types
kasperpeulen Sep 22, 2023
da91e3d
Make getters lazy and fix workspace
kasperpeulen Sep 22, 2023
17b3a33
Fix yarn.lock
kasperpeulen Sep 22, 2023
fae8299
Fix type fest range
kasperpeulen Sep 22, 2023
2085dd4
Patch vitest to make it compatible with the jest runner
kasperpeulen Sep 22, 2023
39ed28d
Add jest types to lock
kasperpeulen Sep 22, 2023
ddd8bf1
Better patch
kasperpeulen Sep 22, 2023
27ded25
Fix lock
kasperpeulen Sep 22, 2023
d44e0bd
Fix lazy getters
kasperpeulen Sep 23, 2023
8657c59
Fix gitignore
kasperpeulen Sep 23, 2023
db9bb66
Merge branch 'next' into kasper/test-package
kasperpeulen Oct 3, 2023
a5cdd31
Fix getter
kasperpeulen Oct 3, 2023
d62d5b2
Merge remote-tracking branch 'origin/next' into kasper/test-package
kasperpeulen Oct 3, 2023
de86f5d
Always externalize @vitest deps in tsup, as they are ESM-only. But st…
kasperpeulen Oct 4, 2023
6ee27f2
Always install extra deps
kasperpeulen Oct 3, 2023
47586d9
Fix getters that use `this`
kasperpeulen Oct 4, 2023
4ae6a77
Fix deps issue
kasperpeulen Oct 4, 2023
5497868
Merge remote-tracking branch 'origin/next' into kasper/bladiebla
kasperpeulen Oct 5, 2023
6de0d49
Fix lock files
kasperpeulen Oct 5, 2023
2b9981a
Fix check script
kasperpeulen Oct 5, 2023
fb84613
Calculate the diff for chai errors
kasperpeulen Oct 10, 2023
6801e04
Add moduleNameMapper for ESM only modules with package json exports
kasperpeulen Oct 10, 2023
ef847b9
Downcast function types that are mocks in meta args
kasperpeulen Oct 10, 2023
d843514
Merge branch 'next' into kapser/test-package2
ndelangen Oct 11, 2023
f42e9ef
Pre bundle most deps of the test package
kasperpeulen Oct 25, 2023
43ee7d5
Merge remote-tracking branch 'origin/next' into kapser/test-package2
kasperpeulen Oct 25, 2023
a8edebd
Merge branch 'next' into kapser/test-package2
kasperpeulen Oct 26, 2023
bcf87ea
Fix eslint
kasperpeulen Oct 27, 2023
19f2409
Merge branch 'next' into kapser/test-package2
kasperpeulen Oct 27, 2023
d888f60
Fix next version
kasperpeulen Oct 27, 2023
4f08e77
Merge remote-tracking branch 'origin/kapser/test-package2' into kapse…
kasperpeulen Oct 27, 2023
4e993be
Merge remote-tracking branch 'origin/next' into kapser/test-package2
kasperpeulen Oct 27, 2023
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
Prev Previous commit
Next Next commit
Fix eslint
kasperpeulen committed Sep 22, 2023
commit 33cbcae5d6ddc37b6ad60f26d44ca4a4230b47e4
2 changes: 1 addition & 1 deletion code/lib/test/src/testing-library.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable prefer-destructuring,@typescript-eslint/ban-types */
/* eslint-disable @typescript-eslint/ban-types */
import { once } from '@storybook/client-logger';
import { instrument } from '@storybook/instrumenter';
import * as domTestingLibrary from '@testing-library/dom';