-
Notifications
You must be signed in to change notification settings - Fork 759
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
repo: update vitest #3191
Closed
Closed
repo: update vitest #3191
Changes from all commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
853ed63
repo: update vitest
jochem-brouwer 2c4620b
update vitest
jochem-brouwer 585e484
Fix nested tests
acolytec3 2276696
Fix nested tests
acolytec3 8133afb
fix tests
jochem-brouwer ab693ca
evm: lint
jochem-brouwer ea1cbbc
fix more tests
jochem-brouwer 179fc25
fix warnings and lint errors
ScottyPoi 0ccca2a
client: fix rlpxserver.spec.ts nesting
ScottyPoi 4ee5762
client: fix test nesting in fetcher.spec.ts
ScottyPoi 93a08af
client: fetcher.spec.ts - extend timeout to 200ms
ScottyPoi 58c4578
client/test/rpc/eth: fix nesting and timeout issues
ScottyPoi 6a56207
wallet/test: fix nesting timeout issue
ScottyPoi 0ed392a
wallet/test: fix nesting and timeouts
ScottyPoi 081784c
fix versions for browser deps
ScottyPoi 2f826bf
rlp: fix integration errors with await import
ScottyPoi f1b6d7e
util: fix browser test errors from 'events' module import
ScottyPoi 6a54056
util: fix test nesting
ScottyPoi 8c29a91
wallet: add assert.fail() to try/catch based tests
ScottyPoi eeeabe2
wallet: alter promise based tests
ScottyPoi 9feb873
wallet: add config file and increase test timeout
ScottyPoi 1c5c5c3
common: add test config with polyfill
ScottyPoi fff07a7
rlp: add node polyfill to browser test
ScottyPoi 9ef38d1
util: add node polyfill plugin to vitest browser config
ScottyPoi b6a992b
common: use eventemitter3 in browser mode
ScottyPoi 23a6667
config: use global vitest.browser.config file for shared settings
ScottyPoi 2a2b8dc
block: Fixes for browser mode
ScottyPoi c7b081b
trie: fix browser mode tests
ScottyPoi d89052b
tx: fix for browser mode tests
ScottyPoi 1e03762
blockchain: fix for browser mode tests
ScottyPoi c4c3be5
wallet: fix for browser mode tests
ScottyPoi 7e21a21
statemanager: fix for browser mode tests
ScottyPoi 49d8fb5
evm: fix for browser mode tests
ScottyPoi a91c706
block: fix for header.spec browser mode
ScottyPoi ecffe09
codecov: ignore vitest.config files
ScottyPoi 1f35f36
util: merge config with baseconfig
ScottyPoi 7bdbab5
util: remove skips from from asyncEventEmitter tests
ScottyPoi d7ba0b7
client: use top level import in fullethereumservice.spec.ts
ScottyPoi 15e91ac
header.spec.ts: move compare function outside of tests
ScottyPoi 5d29831
update vitest to v1.2
ScottyPoi d1959de
CI browser: move block test to last
ScottyPoi ea2d1ca
workflow: use --include=peer instead of second install script
ScottyPoi 1ff39f3
block: revert import change in header.spec
ScottyPoi 0458823
peerDeps: pin specific versions
ScottyPoi e824e07
**/test: branch PR cleanup
ScottyPoi 434259a
mono: cleanup package.json and workflow browser.yml
ScottyPoi b3eac54
browser: edit workflow script
ScottyPoi 9b7bd07
block: edit block settings
ScottyPoi b135df4
edit import
ScottyPoi 654fddd
block: fix examples
ScottyPoi b98fa0e
block: enable all browser tests
ScottyPoi 03a2709
evm: fix for excluded tests
ScottyPoi 8fcb7cc
Add web-streams polyfill for browser testing
acolytec3 e5c47c1
Add dep back and fix blockchain test
acolytec3 dfdce80
delete commented code and console logs
ScottyPoi c20caea
remove carat from @vitest/browser dependency
ScottyPoi c47fdae
rebase master / commit package-lock
ScottyPoi cf17f00
common: remove crypto import from test
ScottyPoi 27b2e87
evm: fix import in customCrypto test
ScottyPoi 91a6870
block: use "type": "module" in package.json
ScottyPoi 146fd07
commit lockfile
ScottyPoi 9e038d3
revert codecov change
ScottyPoi 5a64b30
block: revert package type change
ScottyPoi 781226d
block: rename config to .mts
ScottyPoi 1db4838
blockchain: rename config to .mts
ScottyPoi 4ba44f5
all: rename browser.config to .mts
ScottyPoi 849a065
block: await import of vitest
ScottyPoi ca1ae5b
config: rename browser config to .mts
ScottyPoi 7af576b
config: make toplevelawait and dynamicImport plugins global
ScottyPoi 3c028e9
deps: add dynamicImport vite plugin
ScottyPoi fa7f536
config: update imports in config files
ScottyPoi 0fcb942
vitest: update to 1.2.1
ScottyPoi b665d79
evm: fix import / export type error
ScottyPoi e60e56b
evm: revert import changes
ScottyPoi 64af3de
evm: revert import changes
ScottyPoi f2f2630
revert whitespace change
ScottyPoi d0e7a5f
block: revert change to 4844 example
ScottyPoi 55a0434
evm: delete type change
ScottyPoi d26fa2f
vitest: only merge config if settings present
ScottyPoi 6851221
client: revert changes to test files
ScottyPoi bfb5b89
browser: cache during action script
ScottyPoi 933ccf2
revert import change
ScottyPoi 9b7021b
client: revert edit in fullethereumservice.spec.ts
ScottyPoi 1e434ca
add strict-peer-deps flag to browser workflow
ScottyPoi b049730
workflow: revert cache addition
ScottyPoi b4d4bae
commit lock changes
ScottyPoi 13a1356
blockchain: rename index.spec.ts to blockchain.spec.ts
ScottyPoi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { defineConfig } from 'vitest/config' | ||
import { nodePolyfills } from 'vite-plugin-node-polyfills' | ||
import topLevelAwait from 'vite-plugin-top-level-await' | ||
import dynamicImport from 'vite-plugin-dynamic-import' | ||
|
||
const config = defineConfig({ | ||
test: { | ||
browser: { | ||
enabled: true, | ||
name: 'chrome', | ||
headless: true, | ||
}, | ||
}, | ||
resolve: { | ||
alias: { | ||
events: 'eventemitter3', | ||
'node:stream/web': 'web-streams-polyfill/es2018', | ||
}, | ||
}, | ||
plugins: [ | ||
nodePolyfills({ | ||
include: ['util', 'fs', 'buffer'], | ||
}), | ||
topLevelAwait(), | ||
dynamicImport() | ||
], | ||
}) | ||
|
||
export default config |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this playwright thing removed?