Comments (11)
Alright, I'll do some experimentations with it! Thanks!
from test-runner.
what I'm trying to do is to use Vitest instead of Jest to run the test-runner. this will minimize the amount of setup, configs and time to run tests I assume by a substantial amount.
can storybook rely on Vite to transform the stories instead? that would be neat!
from test-runner.
Any progress on this? @yannbf Did running with vitest instead of jest worked?
from test-runner.
+1, @yannbf. Thank you so much for all your work on storybook!
Just to offer another datapoint, here's (IMO) one compelling reason to support @playwright/test
. It has access to the experimental ssim-cie94 image comparator (cross-link microsoft/playwright#13873 (comment)).
Context: a common problem is developers might generate screenshots locally on an arm mac, and execute CI tests against x86 linux.
This yields non-determinism. From https://gitnet.fr/deblan/playwright/commit/6d82460a02dec3393490bcab7b619f668f03e6c6
As of Nov 30, 2022, we identified the following sources of
non-determenistic rendering for Chromium:
- Anti-aliasing for certain shapes might be different due to the
way skia rasterizes certain shapes.- Color blending might be different on
x86
andaarch64
architectures.
As it stands, non SaaS (chromatic/percy) solutions like Amex's americanexpress/jest-image-snapshot#326 does not have access to this experimental comparator even when setting package.json resolutions
from test-runner.
Hey @jeremyzila, we use jest-playwright as the playwright runner does not support file transformations and we need that in order to turn stories into tests. If they ever support that we could totally support it as a runner too.
I wonder what's your use case, specifically the typescript part. Our runner also has support for typescript!
from test-runner.
Hey @patak-dev do you think we can already experiment with vite? Will it be able to accept transformations like jest?
from test-runner.
Yes, from the code you shown me last time, I dont see any blockers
from test-runner.
I think we might be able to use @playwright/test
as playwright
just appears to be a wrapper to playwright-core
. Which is used in @playwright/test
aswell.
from test-runner.
It looks like jest-playwright
is installing playwright-core
too https://github.com/playwright-community/jest-playwright/blob/95b83774be71e3859875ccdcc27e0e5aef28c3ff/package.json#L49.
from test-runner.
It looks like
jest-playwright
is installingplaywright-core
too https://github.com/playwright-community/jest-playwright/blob/95b83774be71e3859875ccdcc27e0e5aef28c3ff/package.json#L49.
Ah nope. Still need to install playwright
to use jest-playwright-preset
. Would've thought that playwright
would be a peerDependencies
for jest-playwright-preset
.
from test-runner.
Oooo, I'd love to know this as well, @yannbf. Thanks for all your work on Storybook!
from test-runner.
Related Issues (20)
- [bug] coverage no longer report in terminal HOT 2
- [bug] Add support for passWithNoTests
- [question] Error: Cannot find module 'detect-package-manager' HOT 1
- [bug] test-runner doesn't execute in the project folder HOT 2
- CLI tests don't run using chromium browser with error message "invalid version" HOT 1
- [bug] --failOnConsole not working with Mock Service Worker
- [bug] Issue with open HTTP connections: Jest did not exit
- Skip or Exclude not working on play-tests HOT 2
- How to specify Chromium path HOT 3
- Installation Error with NPM HOT 2
- [question] Any plans to move or support vitest?
- [bug] Doesn't work with git worktrees HOT 1
- [Bug]: Type of canvasElement from getStoryContext is unknown HOT 2
- [question] Any plans to support v8.0.0???? HOT 1
- Test runner rendering next story before previous tests finish
- [bug] `getStoryContext` is missing `playFunction` HOT 1
- [bug] preVisit accesses the story store before the index is ready HOT 7
- [bug] the --outputFile parameter is not working when --junit parameter is issued HOT 4
- [bug] Storybook Test Runner Timeout with waitForPageReady HOT 2
- [feature request] Make tags available in the test context HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from test-runner.