forked from anuraghazra/github-readme-stats
-
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.
Add performance tests base (anuraghazra#3141)
* Add basic bench tests * dev
- Loading branch information
Showing
7 changed files
with
357 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ node_modules | |
*.lock | ||
.idea/ | ||
coverage | ||
benchmarks | ||
vercel_token | ||
|
||
# IDE | ||
|
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,16 @@ | ||
export default { | ||
// Jest-bench need its own test environment to function | ||
testEnvironment: "jest-bench/environment", | ||
testEnvironmentOptions: { | ||
// still Jest-bench environment will run your environment if you specify it here | ||
testEnvironment: "jest-environment-node", | ||
testEnvironmentOptions: { | ||
// specify any option for your environment | ||
}, | ||
}, | ||
// always include "default" reporter along with Jest-bench reporter | ||
// for error reporting | ||
reporters: ["default", "jest-bench/reporter"], | ||
// will pick up "*.bench.js" file. | ||
testRegex: "(\\.bench)\\.(ts|tsx|js)$", | ||
}; |
Oops, something went wrong.