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

build: bump test dependencies #5482

Merged
merged 40 commits into from
Oct 31, 2024
Merged

build: bump test dependencies #5482

merged 40 commits into from
Oct 31, 2024

Conversation

peterpeterparker
Copy link
Member

@peterpeterparker peterpeterparker commented Sep 18, 2024

Motivation

Upgrade the test dependencies.

Changes

  • Bump vitest and related dependencies
  • Adapt vitest.config for breaking changes
    • Add svelteTesting plugin
    • Move useAtomics config

github-merge-queue bot pushed a commit that referenced this pull request Sep 18, 2024
# Motivation

Many dev dependencies are becoming a bit outdated therefore I suggest to
bump most of those to stay up-to-date.

This PR bumps dev dependencies including Sveltekit but excluded:

- Typescript and eslint for compatibility reason (eslint v8 vs v9)
- Prettier -> #5481
- Vitest and related libs -> #5482
- Playwright -> #5483
- Sass as it throws warnings and/or require update the styles (as we
recently did in
[gix-cmp](dfinity/gix-components#471))

# Changes

- Update Svelte and SvelteKit related libraries
- Update vite
- Update few minor dev dependencies (dotenv etc.)

---------

Signed-off-by: David Dal Busco <[email protected]>
@peterpeterparker peterpeterparker marked this pull request as ready for review September 18, 2024 13:35
@peterpeterparker peterpeterparker requested a review from a team as a code owner September 18, 2024 13:35
@peterpeterparker peterpeterparker marked this pull request as draft September 18, 2024 13:45
@peterpeterparker peterpeterparker marked this pull request as ready for review October 14, 2024 15:06
@peterpeterparker
Copy link
Member Author

@dskloetd big PR but, there is also a big gap between vitest 0.34.6 and 2.1.1. Not sure if there was ways to break things down.

Thanks a ton @mstrasinskis for the help!

frontend/vitest.config.ts Show resolved Hide resolved
frontend/src/tests/routes/app/home/home-page.spec.ts Outdated Show resolved Hide resolved
frontend/src/tests/lib/services/sns.services.spec.ts Outdated Show resolved Hide resolved
frontend/src/tests/lib/routes/Wallet.spec.ts Outdated Show resolved Hide resolved
frontend/src/tests/lib/routes/Settings.spec.ts Outdated Show resolved Hide resolved
frontend/src/tests/lib/pages/NnsProposalDetail.spec.ts Outdated Show resolved Hide resolved
frontend/src/tests/lib/pages/NnsProposalDetail.spec.ts Outdated Show resolved Hide resolved
frontend/src/tests/lib/components/ui/Hash.spec.ts Outdated Show resolved Hide resolved
mstrasinskis and others added 16 commits October 18, 2024 13:57
This reverts commit 612d62f.
This reverts commit 936bec6.
# Conflicts:
#	CHANGELOG-Nns-Dapp-unreleased.md
#	frontend/src/tests/lib/services/actionable-sns-proposals.services.spec.ts
#	frontend/src/tests/lib/services/public/proposals.services.spec.ts
Because of this message:

You have specified a baseUrl and/or paths in your tsconfig.json which interferes with SvelteKit's auto-generated tsconfig.json. Remove it to avoid problems with intellisense. For path aliases, use `kit.alias` instead: https://kit.svelte.dev/docs/configuration#alias
 MISSING DEPENDENCY  Cannot find dependency 'jsdom'
? Do you want to install jsdom? › (y/N)
This reverts commit 49bc925.
This reverts commit 767da63.
@mstrasinskis mstrasinskis mentioned this pull request Oct 29, 2024
1 task
github-merge-queue bot pushed a commit that referenced this pull request Oct 29, 2024
# Motivation

After upgrading the test dependencies
(#5482), the Wallet test doesn’t
pass. This could be an issue specific to [the
test](https://github.com/dfinity/nns-dapp/pull/5482/files#r1806490235),
but using get instead of $ in areas that don’t rely on dynamic updates
might be a good idea.

# Changes

- Replace $ with get.

# Tests

- Pass

# Todos

- [ ] Add entry to changelog (if necessary).
not necessary
CHANGELOG-Nns-Dapp-unreleased.md Outdated Show resolved Hide resolved
@mstrasinskis mstrasinskis added this pull request to the merge queue Oct 31, 2024
Merged via the queue into main with commit 2ebce8b Oct 31, 2024
30 checks passed
@mstrasinskis mstrasinskis deleted the build/bump-test-dps branch October 31, 2024 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants