Skip to content

feat: migrate from jest to vitest#49

Merged
AlbertHernandez merged 5 commits into
mainfrom
test/migrate-from-jest-to-vitest
Mar 3, 2024
Merged

feat: migrate from jest to vitest#49
AlbertHernandez merged 5 commits into
mainfrom
test/migrate-from-jest-to-vitest

Conversation

@AlbertHernandez

@AlbertHernandez AlbertHernandez commented Mar 3, 2024

Copy link
Copy Markdown
Owner

Proposed changes

Migrate from jest to vitest

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

@github-actions github-actions Bot added 🚀 Feature Feature added in the PR 💻 Source Indicates the scope is related to the own service logic ⚙️ Configuration Indicates the scope is related to the configuration 🚀 CI/CD Indicates the change is related to CI/CD workflows 📝 Documentation Improvements or additions to documentation 🐳 Build Indicates the change is related to the build 📦 Dependencies Pull requests that update a dependency file 🧪 Tests Indicates the scope is related to the tests labels Mar 3, 2024
@github-actions

github-actions Bot commented Mar 3, 2024

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Manifest Files

package-lock.json
  • @ampproject/remapping@2.3.0
  • @babel/core@7.24.0
  • @babel/helpers@7.24.0
  • @babel/parser@7.24.0
  • @babel/template@7.24.0
  • @babel/traverse@7.24.0
  • @babel/types@7.24.0
  • @esbuild/aix-ppc64@0.19.12
  • @esbuild/android-arm@0.19.12
  • @esbuild/android-arm64@0.19.12
  • @esbuild/android-x64@0.19.12
  • @esbuild/darwin-arm64@0.19.12
  • @esbuild/darwin-x64@0.19.12
  • @esbuild/freebsd-arm64@0.19.12
  • @esbuild/freebsd-x64@0.19.12
  • @esbuild/linux-arm@0.19.12
  • @esbuild/linux-arm64@0.19.12
  • @esbuild/linux-ia32@0.19.12
  • @esbuild/linux-loong64@0.19.12
  • @esbuild/linux-mips64el@0.19.12
  • @esbuild/linux-ppc64@0.19.12
  • @esbuild/linux-riscv64@0.19.12
  • @esbuild/linux-s390x@0.19.12
  • @esbuild/linux-x64@0.19.12
  • @esbuild/netbsd-x64@0.19.12
  • @esbuild/openbsd-x64@0.19.12
  • @esbuild/sunos-x64@0.19.12
  • @esbuild/win32-arm64@0.19.12
  • @esbuild/win32-ia32@0.19.12
  • @esbuild/win32-x64@0.19.12
  • @fastify/busboy@2.1.1
  • @jridgewell/gen-mapping@0.3.5
  • @jridgewell/set-array@1.2.1
  • @jridgewell/trace-mapping@0.3.25
  • @rollup/pluginutils@5.1.0
  • @rollup/rollup-android-arm-eabi@4.12.0
  • @rollup/rollup-android-arm64@4.12.0
  • @rollup/rollup-darwin-arm64@4.12.0
  • @rollup/rollup-darwin-x64@4.12.0
  • @rollup/rollup-linux-arm-gnueabihf@4.12.0
  • @rollup/rollup-linux-arm64-gnu@4.12.0
  • @rollup/rollup-linux-arm64-musl@4.12.0
  • @rollup/rollup-linux-riscv64-gnu@4.12.0
  • @rollup/rollup-linux-x64-gnu@4.12.0
  • @rollup/rollup-linux-x64-musl@4.12.0
  • @rollup/rollup-win32-arm64-msvc@4.12.0
  • @rollup/rollup-win32-ia32-msvc@4.12.0
  • @rollup/rollup-win32-x64-msvc@4.12.0
  • @types/estree@1.0.5
  • @types/node@20.11.24
  • @types/semver@7.5.8
  • @typescript-eslint/scope-manager@6.21.0
  • @typescript-eslint/types@6.21.0
  • @typescript-eslint/typescript-estree@6.21.0
  • @typescript-eslint/utils@6.21.0
  • @typescript-eslint/visitor-keys@6.21.0
  • @vitest/coverage-istanbul@1.3.1
  • @vitest/expect@1.3.1
  • @vitest/runner@1.3.1
  • @vitest/snapshot@1.3.1
  • @vitest/spy@1.3.1
  • @vitest/utils@1.3.1
  • assertion-error@1.1.0
  • cac@6.7.14
  • caniuse-lite@1.0.30001591
  • chai@4.4.1
  • check-error@1.0.3
  • deep-eql@4.1.3
  • electron-to-chromium@1.4.690
  • esbuild@0.19.12
  • eslint-plugin-vitest@0.3.22
  • estree-walker@3.0.3
  • estree-walker@2.0.2
  • flatted@3.3.1
  • get-func-name@2.0.2
  • istanbul-lib-instrument@6.0.2
  • istanbul-reports@3.1.7
  • js-tokens@8.0.3
  • load-tsconfig@0.2.5
  • local-pkg@0.5.0
  • loupe@2.3.7
  • magic-string@0.30.7
  • magicast@0.3.3
  • mlly@1.6.1
  • nanoid@3.3.7
  • p-limit@5.0.0
  • pathe@1.1.2
  • pathval@1.1.1
  • piscina@4.4.0
  • pkg-types@1.0.3
  • postcss@8.4.35
  • rollup@4.12.0
  • siginfo@2.0.0
  • source-map-js@1.0.2
  • source-map-support@0.5.21
  • stackback@0.0.2
  • std-env@3.7.0
  • strip-literal@2.0.0
  • tinybench@2.6.0
  • tinypool@0.8.2
  • tinyspy@2.2.1
  • ts-essentials@9.4.1
  • ufo@1.4.0
  • unplugin@1.7.1
  • unplugin-swc@1.4.4
  • vite@5.1.4
  • vite-node@1.3.1
  • vitest@1.3.1
  • vitest-mock-extended@1.3.1
  • webpack-sources@3.2.3
  • webpack-virtual-modules@0.6.1
  • why-is-node-running@2.2.2
  • @ampproject/remapping@2.2.1
  • @babel/core@7.23.9
  • @babel/helper-plugin-utils@7.22.5
  • @babel/helpers@7.23.9
  • @babel/parser@7.23.9
  • @babel/plugin-syntax-async-generators@7.8.4
  • @babel/plugin-syntax-bigint@7.8.3
  • @babel/plugin-syntax-class-properties@7.12.13
  • @babel/plugin-syntax-import-meta@7.10.4
  • @babel/plugin-syntax-json-strings@7.8.3
  • @babel/plugin-syntax-jsx@7.23.3
  • @babel/plugin-syntax-logical-assignment-operators@7.10.4
  • @babel/plugin-syntax-nullish-coalescing-operator@7.8.3
  • @babel/plugin-syntax-numeric-separator@7.10.4
  • @babel/plugin-syntax-object-rest-spread@7.8.3
  • @babel/plugin-syntax-optional-catch-binding@7.8.3
  • @babel/plugin-syntax-optional-chaining@7.8.3
  • @babel/plugin-syntax-top-level-await@7.14.5
  • @babel/plugin-syntax-typescript@7.23.3
  • @babel/template@7.23.9
  • @babel/traverse@7.23.9
  • @babel/types@7.23.9
  • @bcoe/v8-coverage@0.2.3
  • @fastify/busboy@2.1.0
  • @istanbuljs/load-nyc-config@1.1.0
  • @jest/console@29.7.0
  • @jest/core@29.7.0
  • @jest/create-cache-key-function@29.7.0
  • @jest/environment@29.7.0
  • @jest/expect@29.7.0
  • @jest/expect-utils@29.7.0
  • @jest/fake-timers@29.7.0
  • @jest/globals@29.7.0
  • @jest/reporters@29.7.0
  • @jest/source-map@29.6.3
  • @jest/test-result@29.7.0
  • @jest/test-sequencer@29.7.0
  • @jest/transform@29.7.0
  • @jest/types@29.6.3
  • @jridgewell/gen-mapping@0.3.3
  • @jridgewell/set-array@1.1.2
  • @jridgewell/trace-mapping@0.3.22
  • @sinonjs/commons@3.0.1
  • @sinonjs/fake-timers@10.3.0
  • @swc/jest@0.2.36
  • @types/babel__core@7.20.5
  • @types/babel__generator@7.6.8
  • @types/babel__template@7.4.4
  • @types/babel__traverse@7.20.5
  • @types/graceful-fs@4.1.9
  • @types/istanbul-lib-coverage@2.0.6
  • @types/istanbul-lib-report@3.0.3
  • @types/istanbul-reports@3.0.4
  • @types/jest@29.5.12
  • @types/node@20.11.19
  • @types/semver@7.5.7
  • @types/stack-utils@2.0.3
  • @types/yargs@17.0.32
  • @types/yargs-parser@21.0.3
  • @typescript-eslint/scope-manager@5.62.0
  • @typescript-eslint/types@5.62.0
  • @typescript-eslint/typescript-estree@5.62.0
  • @typescript-eslint/utils@5.62.0
  • @typescript-eslint/visitor-keys@5.62.0
  • ansi-escapes@4.3.2
  • argparse@1.0.10
  • babel-jest@29.7.0
  • babel-plugin-istanbul@6.1.1
  • babel-plugin-jest-hoist@29.6.3
  • babel-preset-current-node-syntax@1.0.1
  • babel-preset-jest@29.6.3
  • bs-logger@0.2.6
  • bser@2.1.1
  • camelcase@5.3.1
  • camelcase@6.3.0
  • caniuse-lite@1.0.30001587
  • char-regex@1.0.2
  • ci-info@3.9.0
  • cjs-module-lexer@1.2.3
  • co@4.6.0
  • collect-v8-coverage@1.0.2
  • create-jest@29.7.0
  • dedent@1.5.1
  • deepmerge@4.3.1
  • detect-newline@3.1.0
  • electron-to-chromium@1.4.673
  • emittery@0.13.1
  • escape-string-regexp@2.0.0
  • eslint-plugin-jest@27.9.0
  • eslint-scope@5.1.1
  • esprima@4.0.1
  • estraverse@4.3.0
  • exit@0.1.2
  • expect@29.7.0
  • fb-watchman@2.0.2
  • flatted@3.2.9
  • get-package-type@0.1.0
  • import-local@3.1.0
  • is-generator-fn@2.1.0
  • istanbul-lib-instrument@5.2.1
  • istanbul-lib-instrument@6.0.1
  • istanbul-reports@3.1.6
  • jest@29.7.0
  • jest-changed-files@29.7.0
  • jest-circus@29.7.0
  • jest-cli@29.7.0
  • jest-config@29.7.0
  • jest-diff@29.7.0
  • jest-docblock@29.7.0
  • jest-each@29.7.0
  • jest-environment-node@29.7.0
  • jest-get-type@29.6.3
  • jest-haste-map@29.7.0
  • jest-leak-detector@29.7.0
  • jest-matcher-utils@29.7.0
  • jest-message-util@29.7.0
  • jest-mock@29.7.0
  • jest-pnp-resolver@1.2.3
  • jest-regex-util@29.6.3
  • jest-resolve@29.7.0
  • jest-resolve-dependencies@29.7.0
  • jest-runner@29.7.0
  • jest-runtime@29.7.0
  • jest-snapshot@29.7.0
  • jest-util@29.7.0
  • jest-validate@29.7.0
  • jest-watcher@29.7.0
  • jest-worker@29.7.0
  • js-yaml@3.14.1
  • kleur@3.0.3
  • leven@3.1.0
  • lodash.memoize@4.1.2
  • makeerror@1.0.12
  • node-int64@0.4.0
  • npm-run-path@5.2.0
  • pirates@4.0.6
  • piscina@4.3.2
  • pkg-dir@4.2.0
  • prompts@2.4.2
  • pure-rand@6.0.4
  • resolve-cwd@3.0.0
  • resolve.exports@2.0.2
  • sisteransi@1.0.5
  • source-map-support@0.5.13
  • sprintf-js@1.0.3
  • stack-utils@2.0.6
  • string-length@4.0.2
  • strip-bom@4.0.0
  • supports-color@8.1.1
  • tmpl@1.0.5
  • ts-jest@29.1.2
  • tslib@1.14.1
  • tsutils@3.21.0
  • type-fest@0.21.3
  • v8-to-istanbul@9.2.0
  • walker@1.0.8
  • write-file-atomic@4.0.2
package.json
  • @vitest/coverage-istanbul@^1.3.1
  • eslint-plugin-vitest@^0.3.22
  • unplugin-swc@^1.4.4
  • vite@^5.1.4
  • vitest@^1.3.1
  • vitest-mock-extended@^1.3.1
  • @swc/jest@^0.2.34
  • @types/jest@^29.5.12
  • eslint-plugin-jest@^27.9.0
  • jest@^29.7.0
  • ts-jest@^29.1.2

@github-actions

github-actions Bot commented Mar 3, 2024

Copy link
Copy Markdown
Contributor

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@github-actions github-actions Bot added the 🤯 size/xl Pull request size XL label Mar 3, 2024
@AlbertHernandez

Copy link
Copy Markdown
Owner Author

/generate-dist

@github-actions

github-actions Bot commented Mar 3, 2024

Copy link
Copy Markdown
Contributor

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@github-actions github-actions Bot added 🚀 Feature Feature added in the PR and removed 🚀 Feature Feature added in the PR labels Mar 3, 2024
@AlbertHernandez AlbertHernandez merged commit ef209c3 into main Mar 3, 2024
@AlbertHernandez AlbertHernandez deleted the test/migrate-from-jest-to-vitest branch March 3, 2024 14:08
@github-actions github-actions Bot added 🚀 Feature Feature added in the PR and removed 🚀 Feature Feature added in the PR labels Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐳 Build Indicates the change is related to the build 🚀 CI/CD Indicates the change is related to CI/CD workflows ⚙️ Configuration Indicates the scope is related to the configuration 📦 Dependencies Pull requests that update a dependency file 📝 Documentation Improvements or additions to documentation 🚀 Feature Feature added in the PR 🤯 size/xl Pull request size XL 💻 Source Indicates the scope is related to the own service logic 🧪 Tests Indicates the scope is related to the tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant