uppy/examples
Mikael Finstad 1fbb95da2b
improve test scripts (#6016)
1. don't run browser tests in `headless` mode by default when running
tests individually. because when writing/running tests, i usually want
to see/debug using the browser. if one still wants headless, it's as
easy as: `yarn workspace @uppy/xyz test --browser.headless`. instead
append the `headless` mode when running all tests together - it doesn't
make sense to run all projects' tests without headless mode.
2. don't always run browser tests with `watch`: watch doesn't make sense
when running multiple projects in turbo (one project just blocks the
rest watching for changes). if one still wants to run a single test with
watch mode, it's as easy as: `yarn workspace @uppy/xyz test --watch`
3. don't cache test runs: if I run the `test` command. most of the time
I want to actually run tests (not skip them if they already ran last
time)
4. output logs when running tests. it's nice to see that the tests have
actually run (also on CI)
5. when running all tests, use concurrency=1, because the tests also
includes e2e tests, running multiple browsers in parallel really just
makes the test fail on my computer (and uses a lot of memory)

current output is not very informative:

<img width="840" height="410" alt="Screenshot 2025-10-17 at 17 09 55"
src="https://github.com/user-attachments/assets/9ca8278c-f160-478c-87e2-2ef861ba4bb1"
/>

with this PR:

<img width="672" height="495" alt="Screenshot 2025-10-17 at 17 20 49"
src="https://github.com/user-attachments/assets/1339c96b-d0c1-42e1-8fa1-d5a4a36ea42a"
/>
2025-10-17 22:07:01 +08:00
..
angular @uppy/examples: Add new examples (#5942) 2025-09-10 21:46:19 +05:30
aws-companion upgrade cookie-parser (#6005) 2025-10-09 19:27:29 +08:00
aws-nodejs Cleanup examples (#5817) 2025-07-10 17:23:58 +02:00
aws-php Cleanup examples (#5817) 2025-07-10 17:23:58 +02:00
cdn Cleanup examples (#5817) 2025-07-10 17:23:58 +02:00
companion fix broken companion example (#5909) 2025-08-18 13:20:59 +02:00
companion-custom-provider build(deps-dev): bump vite from 7.0.6 to 7.0.7 (#5962) 2025-09-10 15:30:59 +02:00
companion-digitalocean-spaces build(deps-dev): bump vite from 7.0.6 to 7.0.7 (#5962) 2025-09-10 15:30:59 +02:00
nextjs @uppy/examples: Add new examples (#5942) 2025-09-10 21:46:19 +05:30
react improve test scripts (#6016) 2025-10-17 22:07:01 +08:00
reactrouter build(deps-dev): bump vite from 6.3.5 to 6.3.6 (#5972) 2025-09-22 14:46:30 +02:00
sveltekit improve test scripts (#6016) 2025-10-17 22:07:01 +08:00
transloadit build(deps-dev): bump vite from 7.0.6 to 7.0.7 (#5962) 2025-09-10 15:30:59 +02:00
vue improve test scripts (#6016) 2025-10-17 22:07:01 +08:00
xhr-bundle build(deps-dev): bump vite from 7.0.6 to 7.0.7 (#5962) 2025-09-10 15:30:59 +02:00
xhr-node build(deps-dev): bump vite from 7.0.6 to 7.0.7 (#5962) 2025-09-10 15:30:59 +02:00
xhr-php build(deps-dev): bump vite from 7.0.6 to 7.0.7 (#5962) 2025-09-10 15:30:59 +02:00
xhr-python build(deps-dev): bump vite from 7.0.6 to 7.0.7 (#5962) 2025-09-10 15:30:59 +02:00