-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat: web support (browser as an environment) #891
Closed
Closed
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
b03f67b
feat: first trial
Aslemammad c6358f7
tests for web
Aslemammad eaa3035
web plugin
Aslemammad 3a1a768
web export
Aslemammad 7e711eb
pnpm lock
Aslemammad 228c475
update
Aslemammad f468fce
simple usecase works
Aslemammad 7563558
watch and a key work now
Aslemammad fc100a2
finally works
Aslemammad 0c4b40d
cleanup
Aslemammad 0dde6f1
cross hashing
Aslemammad d5e8b4c
update
Aslemammad 59faff4
I hate prettier
Aslemammad 19f4de2
trying to see if tests pass
Aslemammad 61188c7
update pnpm lock
Aslemammad 3edc6cc
Merge branch 'main' of github.com:vitest-dev/vitest into feat/web
Aslemammad c37ca41
done
Aslemammad 80330aa
update pnpm lock
Aslemammad 6606a2e
update
Aslemammad 978836f
update
Aslemammad bd4828a
remove @ts-expect-error
Aslemammad a59e2d7
add ts-ignore
Aslemammad 6e8239d
update readme
Aslemammad f94b94c
chore: add ui + fix collect tests on Windows
userquin 532e530
add style
Aslemammad 7796c06
change iframe
Aslemammad 1cddb48
change name
Aslemammad 5065b98
remove comma
Aslemammad 4f9a913
Merge branch 'main' of github.com:vitest-dev/vitest into feat/web
Aslemammad 2771c44
chore: lint
antfu c397847
chore: lint
antfu e4621af
Merge branch 'main' into feat/web
antfu 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
"packageManager": "[email protected]", | ||
"description": "A blazing fast unit test framework powered by Vite", | ||
"scripts": { | ||
"build": "pnpm -r --filter {packages} run build", | ||
"build": "pnpm -r --filter {packages} --filter !web run build", | ||
"ci": "ni && nr typecheck && nr lint && nr build && nr test:all", | ||
"dev": "pnpm -r --parallel --filter vitest --filter ui --filter web-worker run dev", | ||
"docs": "npm -C docs run dev", | ||
|
@@ -26,7 +26,9 @@ | |
"typecheck": "tsc --noEmit", | ||
"ui:build": "vite build packages/ui", | ||
"ui:dev": "vite packages/ui", | ||
"ui:test": "npm -C packages/ui run test:run" | ||
"ui:test": "npm -C packages/ui run test:run", | ||
"web:build": "pnpm -r --filter web run build", | ||
"web:dev": "pnpm -r --filter web run dev" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^0.19.4", | ||
|
@@ -57,7 +59,7 @@ | |
"rollup-plugin-esbuild": "^4.8.2", | ||
"rollup-plugin-license": "^2.6.1", | ||
"typescript": "^4.6.3", | ||
"vite": "2.9.0-beta.9", | ||
"vite": "^2.8.6", | ||
"vitepress": "^0.22.3", | ||
"vitest": "workspace:*", | ||
"vue": "^3.2.31" | ||
|
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
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
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
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
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
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
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
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.
this function cannot be async, it is used by
extended
jest matchers.@testing-library
for example will not work as expected