-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
256 changed files
with
3,721 additions
and
7,016 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
e2e/ | ||
node_modules | ||
example/node_modules | ||
jest/tests/node_modules | ||
example/snapshots_files/node_modules | ||
vitest/tests/node_modules |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# See https://github.com/bazel-contrib/publish-to-bcr#a-note-on-release-automation | ||
fixedReleaser: | ||
login: gregmagolan | ||
email: greg@aspect.dev | ||
login: hjellek | ||
email: knut.hjelle@fremtind.no |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"homepage": "https://docs.aspect.build/rules/aspect_rules_jest", | ||
"homepage": "https://github.com/fremtind/rules_vitest", | ||
"maintainers": [ | ||
{ | ||
"name": "Greg Magolan", | ||
"email": "greg@aspect.dev", | ||
"github": "gregmagolan" | ||
"name": "Knut Eirik Leira Hjelle", | ||
"email": "knut.hjelle@fremtind.no", | ||
"github": "hjellek" | ||
} | ||
], | ||
"repository": ["github:aspect-build/rules_jest"], | ||
"repository": ["github:fremtind/rules_vitest"], | ||
"versions": [], | ||
"yanked_versions": {} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"integrity": "**leave this alone**", | ||
"strip_prefix": "{REPO}-{VERSION}", | ||
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/rules_jest-{TAG}.tar.gz" | ||
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/rules_vitest-{TAG}.tar.gz" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
bazel-* | ||
.bazelrc.user | ||
**/.terraform/* | ||
.ijwb/* | ||
node_modules | ||
example/node_modules |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,25 @@ | ||
# Bazel rules for jest | ||
# Bazel rules for vitest | ||
|
||
Runs tests with the https://jestjs.io/ test runner under Bazel. | ||
Runs tests with the https://vitest.dev/ test runner under Bazel. | ||
|
||
Many companies are successfully testing with rules_jest. If you're getting value from the project, please let us know! Just comment on our [Adoption Discussion](https://github.com/aspect-build/rules_js/discussions/1000). | ||
|
||
rules_jest is just a part of what Aspect provides: | ||
|
||
- _Need help?_ This ruleset has support provided by https://aspect.dev. | ||
- See our other Bazel rules, especially those built for rules_js, such as rules_ts for TypeScript: https://github.com/aspect-build | ||
rules_vitest is very much based on [rules_vitest](https://github.com/aspect-build/rules_vitest) by by https://aspect.dev | ||
|
||
## Installation | ||
|
||
From the release you wish to use: | ||
<https://github.com/aspect-build/rules_jest/releases> | ||
<https://github.com/fremtind/rules_vitest/releases> | ||
copy the WORKSPACE snippet into your `WORKSPACE` file. | ||
|
||
## Usage | ||
|
||
Run all Jest tests in the workspace: `bazel test --test_lang_filters=jest //...` | ||
Run all Vitest tests in the workspace: `bazel test --test_lang_filters=vitest //...` | ||
|
||
See [jest_test](docs/jest_test.md) API documentation and the example usages in the [example](https://github.com/aspect-build/rules_jest/tree/main/example/) folder. | ||
See [vitest_test](docs/vitest_test.md) API documentation and the example usages in the [example](https://github.com/aspect-build/rules_vitest/tree/main/example/) folder. | ||
|
||
> Note that the example also relies on code in the `/WORKSPACE` file in the root of this repo. | ||
## Troubleshooting and common challenges | ||
|
||
⚠️ `vite`, `vitest`, `react (optional)`, `jsdom (optional)` must be installed at root ⚠️ | ||
|
||
For troubleshooting and common challenges, see [docs/troubleshooting.md](docs/troubleshooting.md). |
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.